2018-10-20 15:36:17 -05:00
|
|
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/issue-19096.rs:3:8
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
|
|
|
|
| ^^ expected one of `.`, `;`, `?`, `}`, or an operator here
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-19096.rs:3:5
|
|
|
|
|
|
|
|
|
LL | fn main() {
|
|
|
|
| - expected `()` because of default return type
|
|
|
|
LL | let t = (42, 42);
|
|
|
|
LL | t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
|
|
|
|
| ^^^ expected (), found integer
|
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|