mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
11 lines
386 B
Rust
11 lines
386 B
Rust
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;
|
|
}
|