fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.1 KiB33 linesraw
1error: lifetime arguments must be declared prior to type arguments
2  --> $DIR/trait-object-vs-lifetime.rs:14:29
3   |
4LL |     let _: S<dyn 'static +, 'static>;
5   |                             ^^^^^^^
6
7error[E0224]: at least one trait is required for an object type
8  --> $DIR/trait-object-vs-lifetime.rs:9:23
9   |
10LL |     let _: S<'static, dyn 'static +>;
11   |                       ^^^^^^^^^^^^^
12
13error[E0107]: wrong number of lifetime arguments: expected 1, found 2
14  --> $DIR/trait-object-vs-lifetime.rs:11:23
15   |
16LL |     let _: S<'static, 'static>;
17   |                       ^^^^^^^ unexpected lifetime argument
18
19error[E0107]: wrong number of type arguments: expected 1, found 0
20  --> $DIR/trait-object-vs-lifetime.rs:11:12
21   |
22LL |     let _: S<'static, 'static>;
23   |            ^^^^^^^^^^^^^^^^^^^ expected 1 type argument
24
25error[E0224]: at least one trait is required for an object type
26  --> $DIR/trait-object-vs-lifetime.rs:14:14
27   |
28LL |     let _: S<dyn 'static +, 'static>;
29   |              ^^^^^^^^^^^^^
30
31error: aborting due to 5 previous errors
32
33For more information about this error, try `rustc --explain E0107`.