rust/src/test/ui/constructor-lifetime-args.stderr

28 lines
1000 B
Plaintext
Raw Normal View History

2018-08-21 20:12:23 -05:00
error[E0107]: wrong number of lifetime arguments: expected 2, found 1
2018-12-25 09:56:47 -06:00
--> $DIR/constructor-lifetime-args.rs:17:5
2018-08-08 07:28:26 -05:00
|
LL | S::<'static>(&0, &0);
2018-08-19 18:08:01 -05:00
| ^^^^^^^^^^^^ expected 2 lifetime arguments
2018-08-08 07:28:26 -05:00
2018-08-21 20:12:23 -05:00
error[E0107]: wrong number of lifetime arguments: expected 2, found 3
2018-12-25 09:56:47 -06:00
--> $DIR/constructor-lifetime-args.rs:19:27
2018-08-08 07:28:26 -05:00
|
LL | S::<'static, 'static, 'static>(&0, &0);
2018-08-20 06:52:56 -05:00
| ^^^^^^^ unexpected lifetime argument
2018-08-08 07:28:26 -05:00
2018-08-21 20:12:23 -05:00
error[E0107]: wrong number of lifetime arguments: expected 2, found 1
2018-12-25 09:56:47 -06:00
--> $DIR/constructor-lifetime-args.rs:22:5
2018-08-08 07:28:26 -05:00
|
LL | E::V::<'static>(&0);
2018-08-19 18:08:01 -05:00
| ^^^^^^^^^^^^^^^ expected 2 lifetime arguments
2018-08-08 07:28:26 -05:00
2018-08-21 20:12:23 -05:00
error[E0107]: wrong number of lifetime arguments: expected 2, found 3
2018-12-25 09:56:47 -06:00
--> $DIR/constructor-lifetime-args.rs:24:30
2018-08-08 07:28:26 -05:00
|
LL | E::V::<'static, 'static, 'static>(&0);
2018-08-20 06:52:56 -05:00
| ^^^^^^^ unexpected lifetime argument
2018-08-08 07:28:26 -05:00
error: aborting due to 4 previous errors
2018-08-21 20:12:23 -05:00
For more information about this error, try `rustc --explain E0107`.