]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-19096.rs
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[rust.git] / src / test / ui / parser / issue-19096.rs
1 fn main() { // we don't complain about the return type being `{integer}`
2     let t = (42, 42);
3     t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
4 }
5
6 fn foo() -> usize { // we don't complain about the return type being unit
7     let t = (42, 42);
8     t.0::<isize>; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `::`
9     42;
10 }