]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/do-catch-suggests-try.stderr
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[rust.git] / src / test / ui / parser / do-catch-suggests-try.stderr
1 error: found removed `do catch` syntax
2   --> $DIR/do-catch-suggests-try.rs:4:25
3    |
4 LL |     let _: Option<()> = do catch {};
5    |                         ^^^^^^^^ help: replace with the new syntax: `try`
6    |
7    = note: following RFC #2388, the new non-placeholder syntax is `try`
8
9 error[E0308]: mismatched types
10   --> $DIR/do-catch-suggests-try.rs:9:33
11    |
12 LL |     let _recovery_witness: () = 1;
13    |                            --   ^ expected `()`, found integer
14    |                            |
15    |                            expected due to this
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0308`.