blob: ce34d9483247f776b41cefeb3e2e51b844b158e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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`.
|