2018-11-17 07:37:23 +00:00
|
|
|
error[E0308]: mismatched types
|
2019-11-09 19:05:20 +00:00
|
|
|
--> $DIR/span-preservation.rs:11:20
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
2019-07-30 17:52:32 +00:00
|
|
|
LL | let x: usize = "hello";
|
2019-11-15 17:37:01 +00:00
|
|
|
| ^^^^^^^ expected `usize`, found `&str`
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-11-09 19:05:20 +00:00
|
|
|
--> $DIR/span-preservation.rs:17:29
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
2019-01-18 08:12:09 +00:00
|
|
|
LL | fn b(x: Option<isize>) -> usize {
|
|
|
|
| ----- expected `usize` because of return type
|
|
|
|
LL | match x {
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | Some(x) => { return x },
|
2019-11-15 17:37:01 +00:00
|
|
|
| ^ expected `usize`, found `isize`
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-11-09 19:05:20 +00:00
|
|
|
--> $DIR/span-preservation.rs:33:22
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let x = Foo { a: 10isize };
|
2019-11-15 17:37:01 +00:00
|
|
|
| ^^^^^^^ expected `usize`, found `isize`
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
|
|
error[E0560]: struct `c::Foo` has no field named `b`
|
2019-11-09 19:05:20 +00:00
|
|
|
--> $DIR/span-preservation.rs:34:26
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let y = Foo { a: 10, b: 10isize };
|
2018-11-17 07:37:23 +00:00
|
|
|
| ^ `c::Foo` does not have this field
|
|
|
|
|
|
|
|
|
= note: available fields are: `a`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-11-09 19:05:20 +00:00
|
|
|
--> $DIR/span-preservation.rs:39:5
|
|
|
|
|
|
|
|
|
LL | extern fn bar() {
|
|
|
|
| - possibly return type missing here?
|
|
|
|
LL | 0
|
2019-11-18 19:01:02 +00:00
|
|
|
| ^ expected `()`, found integer
|
2019-11-09 19:05:20 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/span-preservation.rs:44:5
|
2018-11-17 07:37:23 +00:00
|
|
|
|
|
|
|
|
LL | extern "C" fn baz() {
|
|
|
|
| - possibly return type missing here?
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | 0
|
2019-11-15 17:37:01 +00:00
|
|
|
| ^ expected `()`, found integer
|
2018-11-17 07:37:23 +00:00
|
|
|
|
2019-11-16 22:11:35 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/span-preservation.rs:49:5
|
|
|
|
|
|
|
|
|
LL | extern "Rust" fn rust_abi() {
|
|
|
|
| - possibly return type missing here?
|
|
|
|
LL | 0
|
2019-11-18 19:01:02 +00:00
|
|
|
| ^ expected `()`, found integer
|
2019-11-16 22:11:35 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/span-preservation.rs:54:5
|
|
|
|
|
|
|
|
|
LL | extern "\x43" fn c_abi_escaped() {
|
|
|
|
| - possibly return type missing here?
|
|
|
|
LL | 0
|
2019-11-18 19:01:02 +00:00
|
|
|
| ^ expected `()`, found integer
|
2019-11-16 22:11:35 +00:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2018-11-17 07:37:23 +00:00
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0308, E0560.
|
2018-11-17 07:37:23 +00:00
|
|
|
For more information about an error, try `rustc --explain E0308`.
|