fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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