mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Merge #6379
6379: Highlight never type as BuiltinType r=matklad a=Veykril Fixes #6374 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
53c7aead8f
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()
|
||||
|
@ -159,6 +163,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