blob: ce34d9483247f776b41cefeb3e2e51b844b158e0 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/never-assign-wrong-type.rs:7:16
|
LL | let x: ! = "hello";
| - ^^^^^^^ expected `!`, found `&str`
| |
| expected due to this
|
= note: expected type `!`
found reference `&'static str`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.