diff options
author | Lukas Wirth <[email protected]> | 2020-10-26 21:27:28 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-10-26 21:27:30 +0000 |
commit | 269e67312d30e8e5a5c38cec3f12c52ba0d6d9b6 (patch) | |
tree | a5ef81d58d5862984274f699fc72e0228f6ada46 /crates/ide/src/syntax_highlighting/tests.rs | |
parent | db2c379baeeb2f676540368f89d77390c967541f (diff) |
Highlight never type as BuiltinType
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index dd43f9dd9..f13cf3ef3 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -84,6 +84,10 @@ fn foo<'a, T>() -> T { | |||
84 | foo::<'a, i32>() | 84 | foo::<'a, i32>() |
85 | } | 85 | } |
86 | 86 | ||
87 | fn never() -> ! { | ||
88 | loop {} | ||
89 | } | ||
90 | |||
87 | use ops::Fn; | 91 | use ops::Fn; |
88 | fn baz<F: Fn() -> ()>(f: F) { | 92 | fn baz<F: Fn() -> ()>(f: F) { |
89 | f() | 93 | f() |
@@ -153,6 +157,8 @@ fn main() { | |||
153 | 157 | ||
154 | let baz = -42; | 158 | let baz = -42; |
155 | let baz = -baz; | 159 | let baz = -baz; |
160 | |||
161 | let _ = !true; | ||
156 | } | 162 | } |
157 | 163 | ||
158 | enum Option<T> { | 164 | enum Option<T> { |