summary refs log tree commit diff
path: root/src/test/ui/parser/issue-19096.stderr
blob: f92604d0067c392336621dfb68fc4f5900f9ce17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
  --> $DIR/issue-19096.rs:3:8
   |
LL |     t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
   |        ^^ expected one of `.`, `;`, `?`, `}`, or an operator here

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

For more information about this error, try `rustc --explain E0308`.