]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-10636-2.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[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() {}