mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Highlight never type as BuiltinType
This commit is contained in:
parent
db2c379bae
commit
269e67312d
3 changed files with 15 additions and 0 deletions
|
@ -84,6 +84,10 @@ fn foo<'a, T>() -> T {
|
|||
foo::<'a, i32>()
|
||||
}
|
||||
|
||||
fn never() -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
use ops::Fn;
|
||||
fn baz<F: Fn() -> ()>(f: F) {
|
||||
f()
|
||||
|
@ -153,6 +157,8 @@ fn main() {
|
|||
|
||||
let baz = -42;
|
||||
let baz = -baz;
|
||||
|
||||
let _ = !true;
|
||||
}
|
||||
|
||||
enum Option<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue