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

29 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-08-19 23:08:01 +00:00
error[E0090]: wrong number of lifetime arguments: expected 2, found 1
2018-08-08 12:28:26 +00:00
--> $DIR/constructor-lifetime-args.rs:27:5
|
LL | S::<'static>(&0, &0);
2018-08-19 23:08:01 +00:00
| ^^^^^^^^^^^^ expected 2 lifetime arguments
2018-08-08 12:28:26 +00:00
2018-08-19 23:08:01 +00:00
error[E0088]: wrong number of lifetime arguments: expected 2, found 3
2018-08-20 11:52:56 +00:00
--> $DIR/constructor-lifetime-args.rs:29:27
2018-08-08 12:28:26 +00:00
|
LL | S::<'static, 'static, 'static>(&0, &0);
2018-08-20 11:52:56 +00:00
| ^^^^^^^ unexpected lifetime argument
2018-08-08 12:28:26 +00:00
2018-08-19 23:08:01 +00:00
error[E0090]: wrong number of lifetime arguments: expected 2, found 1
2018-08-08 12:28:26 +00:00
--> $DIR/constructor-lifetime-args.rs:32:5
|
LL | E::V::<'static>(&0);
2018-08-19 23:08:01 +00:00
| ^^^^^^^^^^^^^^^ expected 2 lifetime arguments
2018-08-08 12:28:26 +00:00
2018-08-19 23:08:01 +00:00
error[E0088]: wrong number of lifetime arguments: expected 2, found 3
2018-08-20 11:52:56 +00:00
--> $DIR/constructor-lifetime-args.rs:34:30
2018-08-08 12:28:26 +00:00
|
LL | E::V::<'static, 'static, 'static>(&0);
2018-08-20 11:52:56 +00:00
| ^^^^^^^ unexpected lifetime argument
2018-08-08 12:28:26 +00:00
error: aborting due to 4 previous errors
Some errors occurred: E0088, E0090.
For more information about an error, try `rustc --explain E0088`.