]> git.proxmox.com Git - rustc.git/blob - src/test/ui/never_type/call-fn-never-arg-wrong-type.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / 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`.