2018-06-04 18:47:47 -07:00
|
|
|
error: expected type, found `1`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:12:39
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
|
LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
|
|
|
|
| ^ expecting a type here because of type ascription
|
|
|
|
|
|
|
|
error: expected expression, found `==`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:15:13
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
|
LL | if T {} == T {} { println!("Ok"); }
|
|
|
|
| ^^ expected expression
|
|
|
|
|
|
|
|
error: expected type, found `0`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:21:39
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
|
LL | for _ in std::ops::Range { start: 0, end: 10 } {}
|
|
|
|
| ^ expecting a type here because of type ascription
|
|
|
|
|
2018-02-07 19:35:35 -08:00
|
|
|
error[E0423]: expected function, found struct `Foo`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:4:13
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let f = Foo();
|
2018-06-04 18:47:47 -07:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| did you mean `Foo { /* fields */ }`?
|
2019-01-09 14:11:00 -05:00
|
|
|
| help: a function with a similar name exists: `foo`
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `S`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:12:32
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
|
LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
|
2019-01-17 21:19:30 -08:00
|
|
|
| ^---------------
|
|
|
|
| |
|
|
|
|
| help: surround the struct literal with parenthesis: `(S { x: 1, y: 2 })`
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `T`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:15:8
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
|
LL | if T {} == T {} { println!("Ok"); }
|
2019-01-17 21:19:30 -08:00
|
|
|
| ^---
|
|
|
|
| |
|
|
|
|
| help: surround the struct literal with parenthesis: `(T {})`
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `std::ops::Range`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0423.rs:21:14
|
2018-06-04 18:47:47 -07:00
|
|
|
|
|
|
|
|
LL | for _ in std::ops::Range { start: 0, end: 10 } {}
|
2019-01-17 21:19:30 -08:00
|
|
|
| ^^^^^^^^^^^^^^^----------------------
|
|
|
|
| |
|
|
|
|
| help: surround the struct literal with parenthesis: `(std::ops::Range { start: 0, end: 10 })`
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2018-06-04 18:47:47 -07:00
|
|
|
error: aborting due to 7 previous errors
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|