]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issue-19096.rs
New upstream version 1.57.0+dfsg1
[rustc.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 }