]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-19096.rs
Rollup merge of #107608 - P1n3appl3:master, r=tmandry
[rust.git] / tests / ui / parser / issues / 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 }