summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/lifetime-in-pattern-recover.stderr
blob: 4bf7f57bfb59f2c56b5a365f00bd3768cf219a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: unexpected lifetime `'a` in pattern
  --> $DIR/lifetime-in-pattern-recover.rs:2:10
   |
LL |     let &'a x = &0;
   |          ^^ help: remove the lifetime

error: unexpected lifetime `'a` in pattern
  --> $DIR/lifetime-in-pattern-recover.rs:3:10
   |
LL |     let &'a mut y = &mut 0;
   |          ^^ help: remove the lifetime

error[E0308]: mismatched types
  --> $DIR/lifetime-in-pattern-recover.rs:5:33
   |
LL |     let _recovery_witness: () = 0;
   |                            --   ^ expected `()`, found integer
   |                            |
   |                            expected due to this

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0308`.