]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-66357-unexpected-unreachable.rs
Bless tests
[rust.git] / src / test / ui / parser / issue-66357-unexpected-unreachable.rs
1 // ignore-tidy-linelength
2
3 // The problem in #66357 was that the call trace:
4 //
5 // - parse_fn_block_decl
6 // - expect_or
7 // - unexpected
8 // - expect_one_of
9 // - expected_one_of_not_found
10 // - recover_closing_delimiter
11 //
12 // ended up bubbling up `Ok(true)` to `unexpected` which then used `unreachable!()`.
13
14 fn f() { |[](* }
15 //~^ ERROR expected one of `,` or `:`, found `(`
16 //~| ERROR expected one of `&`, `(`, `)`, `-`, `...`, `..=`, `..`, `[`, `_`, `box`, `mut`, `ref`, `|`, identifier, or path, found `*`