aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting/tests.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting/tests.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs
index 2d90a072f..21c4dd818 100644
--- a/crates/ra_ide/src/syntax_highlighting/tests.rs
+++ b/crates/ra_ide/src/syntax_highlighting/tests.rs
@@ -50,12 +50,19 @@ fn main() {
50 y; 50 y;
51} 51}
52 52
53enum E<X> { 53enum Option<T> {
54 V(X) 54 Some(T),
55 None,
55} 56}
56 57use Option::*;
57impl<X> E<X> { 58
58 fn new<T>() -> E<T> {} 59impl<T> Option<T> {
60 fn and<U>(self, other: Option<U>) -> Option<(T, U)> {
61 match other {
62 None => todo!(),
63 Nope => Nope,
64 }
65 }
59} 66}
60"# 67"#
61 .trim(), 68 .trim(),