aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/snapshots
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/snapshots')
-rw-r--r--crates/ra_ide/src/snapshots/highlighting.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/crates/ra_ide/src/snapshots/highlighting.html b/crates/ra_ide/src/snapshots/highlighting.html
index 8c372ad27..cb4097e05 100644
--- a/crates/ra_ide/src/snapshots/highlighting.html
+++ b/crates/ra_ide/src/snapshots/highlighting.html
@@ -65,10 +65,17 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
65 <span class="variable mutable">y</span>; 65 <span class="variable mutable">y</span>;
66} 66}
67 67
68<span class="keyword">enum</span> <span class="enum">E</span>&lt;<span class="type_param">X</span>&gt; { 68<span class="keyword">enum</span> <span class="enum">Option</span>&lt;<span class="type_param">T</span>&gt; {
69 <span class="enum_variant">V</span>(<span class="type_param">X</span>) 69 <span class="enum_variant">Some</span>(<span class="type_param">T</span>),
70 <span class="enum_variant">None</span>,
70} 71}
72<span class="keyword">use</span> <span class="enum">Option</span>::*;
71 73
72<span class="keyword">impl</span>&lt;<span class="type_param">X</span>&gt; <span class="enum">E</span>&lt;<span class="type_param">X</span>&gt; { 74<span class="keyword">impl</span>&lt;<span class="type_param">T</span>&gt; <span class="enum">Option</span>&lt;<span class="type_param">T</span>&gt; {
73 <span class="keyword">fn</span> <span class="function">new</span>&lt;<span class="type_param">T</span>&gt;() -&gt; <span class="enum">E</span>&lt;<span class="type_param">T</span>&gt; {} 75 <span class="keyword">fn</span> <span class="function">and</span>&lt;<span class="type_param">U</span>&gt;(<span class="keyword">self</span>, <span class="variable">other</span>: <span class="enum">Option</span>&lt;<span class="type_param">U</span>&gt;) -&gt; <span class="enum">Option</span>&lt;(<span class="type_param">T</span>, <span class="type_param">U</span>)&gt; {
76 <span class="keyword control">match</span> <span class="variable">other</span> {
77 <span class="enum_variant">None</span> =&gt; <span class="macro">todo</span><span class="macro">!</span>(),
78 <span class="variable">Nope</span> =&gt; <span class="variable">Nope</span>,
79 }
80 }
74}</code></pre> \ No newline at end of file 81}</code></pre> \ No newline at end of file