fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.6 KiB52 linesraw
1error[E0224]: at least one trait is required for an object type
2  --> $DIR/vs-lifetime.rs:9:23
3   |
4LL |     let _: S<'static, dyn 'static +>;
5   |                       ^^^^^^^^^^^^^
6
7error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied
8  --> $DIR/vs-lifetime.rs:11:12
9   |
10LL |     let _: S<'static, 'static>;
11   |            ^          ------- help: remove this lifetime argument
12   |            |
13   |            expected 1 lifetime argument
14   |
15note: struct defined here, with 1 lifetime parameter: `'a`
16  --> $DIR/vs-lifetime.rs:4:8
17   |
18LL | struct S<'a, T>(&'a u8, T);
19   |        ^ --
20
21error[E0107]: struct takes 1 generic argument but 0 generic arguments were supplied
22  --> $DIR/vs-lifetime.rs:11:12
23   |
24LL |     let _: S<'static, 'static>;
25   |            ^ expected 1 generic argument
26   |
27note: struct defined here, with 1 generic parameter: `T`
28  --> $DIR/vs-lifetime.rs:4:8
29   |
30LL | struct S<'a, T>(&'a u8, T);
31   |        ^     -
32help: add missing generic argument
33   |
34LL |     let _: S<'static, 'static, T>;
35   |                              +++
36
37error[E0224]: at least one trait is required for an object type
38  --> $DIR/vs-lifetime.rs:14:14
39   |
40LL |     let _: S<dyn 'static +, 'static>;
41   |              ^^^^^^^^^^^^^
42
43error[E0747]: type provided when a lifetime was expected
44  --> $DIR/vs-lifetime.rs:14:14
45   |
46LL |     let _: S<dyn 'static +, 'static>;
47   |              ^^^^^^^^^^^^^
48
49error: aborting due to 5 previous errors
50
51Some errors have detailed explanations: E0107, E0224, E0747.
52For more information about an error, try `rustc --explain E0107`.