]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/never-assign-wrong-type.stderr
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / never_type / never-assign-wrong-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/never-assign-wrong-type.rs:7:16
3    |
4 LL |     let x: ! = "hello";
5    |            -   ^^^^^^^ expected `!`, found `&str`
6    |            |
7    |            expected due to this
8    |
9    = note:   expected type `!`
10            found reference `&'static str`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.