]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-19096.stderr
Rollup merge of #59252 - lcnr:mailmap, r=Centril
[rust.git] / src / test / ui / parser / issue-19096.stderr
1 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
2   --> $DIR/issue-19096.rs:3:8
3    |
4 LL |     t.0::<isize>;
5    |        ^^ expected one of `.`, `;`, `?`, `}`, or an operator here
6
7 error[E0308]: mismatched types
8   --> $DIR/issue-19096.rs:3:5
9    |
10 LL | fn main() {
11    |           - expected `()` because of default return type
12 LL |     let t = (42, 42);
13 LL |     t.0::<isize>;
14    |     ^^^ expected (), found integer
15    |
16    = note: expected type `()`
17               found type `{integer}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.