]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/issue-102598.stderr
Make `output_filenames` a real query
[rust.git] / tests / ui / type / issue-102598.stderr
1 error: expected `+` between lifetime and Sized
2   --> $DIR/issue-102598.rs:1:20
3    |
4 LL | fn foo<'a>(_: impl 'a Sized) {}
5    |                    ^^
6    |
7 help: add `+`
8    |
9 LL | fn foo<'a>(_: impl 'a + Sized) {}
10    |                       +
11
12 error: expected one of `:`, `@`, or `|`, found `)`
13   --> $DIR/issue-102598.rs:1:28
14    |
15 LL | fn foo<'a>(_: impl 'a Sized) {}
16    |                            ^ expected one of `:`, `@`, or `|`
17    |
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
20    |
21 LL | fn foo<'a>(_: impl 'a Sized: TypeName) {}
22    |                            ++++++++++
23 help: if this is a type, explicitly ignore the parameter name
24    |
25 LL | fn foo<'a>(_: impl 'a _: Sized) {}
26    |                       ++
27
28 error: expected one of `)`, `+`, or `,`, found `Sized`
29   --> $DIR/issue-102598.rs:1:23
30    |
31 LL | fn foo<'a>(_: impl 'a Sized) {}
32    |                      -^^^^^ expected one of `)`, `+`, or `,`
33    |                      |
34    |                      help: missing `,`
35
36 error: at least one trait must be specified
37   --> $DIR/issue-102598.rs:1:15
38    |
39 LL | fn foo<'a>(_: impl 'a Sized) {}
40    |               ^^^^^^^
41
42 error: aborting due to 4 previous errors
43