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:
bors[bot] 2020-10-27 14:49:37 +00:00 committed by GitHub
commit 53c7aead8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View file

@ -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> {