blob: c5bfd10ee5e66b6ef10751a50b530f604d36bf68 (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn main() { // we don't complain about the return type being `{integer}`
let t = (42, 42);
t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
}
fn foo() -> usize { // we don't complain about the return type being unit
let t = (42, 42);
t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
42;
}
|