]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-10636-2.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / ui / parser / issues / issue-10636-2.rs
1 // FIXME(31528) we emit a bunch of silly errors here due to continuing past the
2 // first one. This would be easy-ish to address by better recovery in tokenisation.
3
4 pub fn trace_option(option: Option<isize>) {
5     option.map(|some| 42;
6                           //~^ ERROR: expected one of
7
8 }
9 //~^ ERROR: expected expression, found `)`
10
11 fn main() {}