summary refs log tree commit diff
path: root/src/test/ui/parser/trait-object-lifetime-parens.stderr
blob: 7c7921bd38d2e712abfdd717c8cb5cffbd5c561a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: parenthesized lifetime bounds are not supported
  --> $DIR/trait-object-lifetime-parens.rs:13:19
   |
LL | fn f<T: Copy + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not supported
   |                   ^

error: parenthesized lifetime bounds are not supported
  --> $DIR/trait-object-lifetime-parens.rs:16:26
   |
LL |     let _: Box<Copy + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
   |                          ^

error: expected type, found `'a`
  --> $DIR/trait-object-lifetime-parens.rs:17:17
   |
LL |     let _: Box<('a) + Copy>; //~ ERROR expected type, found `'a`
   |         -       ^^
   |         |
   |         while parsing the type for `_`

error: aborting due to 3 previous errors