summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/never-assign-wrong-type.stderr
blob: f59de5d2a4289a778a00bd556965bec1cca5a217 (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 1 previous error

For more information about this error, try `rustc --explain E0308`.