1 error: expected `+` between lifetime and Sized
2 --> $DIR/issue-102598.rs:1:20
4 LL | fn foo<'a>(_: impl 'a Sized) {}
9 LL | fn foo<'a>(_: impl 'a + Sized) {}
12 error: expected one of `:`, `@`, or `|`, found `)`
13 --> $DIR/issue-102598.rs:1:28
15 LL | fn foo<'a>(_: impl 'a Sized) {}
16 | ^ expected one of `:`, `@`, or `|`
18 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
19 help: if this is a parameter name, give it a type
21 LL | fn foo<'a>(_: impl 'a Sized: TypeName) {}
23 help: if this is a type, explicitly ignore the parameter name
25 LL | fn foo<'a>(_: impl 'a _: Sized) {}
28 error: expected one of `)`, `+`, or `,`, found `Sized`
29 --> $DIR/issue-102598.rs:1:23
31 LL | fn foo<'a>(_: impl 'a Sized) {}
32 | -^^^^^ expected one of `)`, `+`, or `,`
36 error: at least one trait must be specified
37 --> $DIR/issue-102598.rs:1:15
39 LL | fn foo<'a>(_: impl 'a Sized) {}
42 error: aborting due to 4 previous errors