]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/call-fn-never-arg-wrong-type.stderr
Rollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum
[rust.git] / tests / ui / never_type / call-fn-never-arg-wrong-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/call-fn-never-arg-wrong-type.rs:10:9
3    |
4 LL |     foo("wow");
5    |     --- ^^^^^ expected `!`, found `&str`
6    |     |
7    |     arguments to this function are incorrect
8    |
9    = note:   expected type `!`
10            found reference `&'static str`
11 note: function defined here
12   --> $DIR/call-fn-never-arg-wrong-type.rs:5:4
13    |
14 LL | fn foo(x: !) -> ! {
15    |    ^^^ ----
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.