]> git.proxmox.com Git - rustc.git/blob - tests/ui/parser/trailing-question-in-type.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / parser / trailing-question-in-type.rs
1 // run-rustfix
2
3 fn foo() -> i32? { //~ ERROR invalid `?` in type
4 let x: i32? = Some(1); //~ ERROR invalid `?` in type
5 x
6 }
7
8 fn main() {
9 let _: Option<i32> = foo();
10 }