]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-19096.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / 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 }