2018-08-21 20:12:23 -05:00
|
|
|
error[E0107]: wrong number of type arguments: expected 0, found 1
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-test-2.rs:9:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 10.dup::<i32>();
|
2018-08-20 06:52:56 -05:00
|
|
|
| ^^^ unexpected type argument
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-08-21 20:12:23 -05:00
|
|
|
error[E0107]: wrong number of type arguments: expected 1, found 2
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-test-2.rs:10:20
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 10.blah::<i32, i32>();
|
2018-08-20 06:52:56 -05:00
|
|
|
| ^^^ unexpected type argument
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0038]: the trait `bar` cannot be made into an object
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-test-2.rs:11:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | (box 10 as Box<dyn bar>).dup();
|
|
|
|
| ^^^^^^^^^^^^ the trait `bar` cannot be made into an object
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: method `dup` references the `Self` type in its arguments or return type
|
|
|
|
= note: method `blah` has generic type parameters
|
|
|
|
|
|
|
|
error[E0038]: the trait `bar` cannot be made into an object
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-test-2.rs:11:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | (box 10 as Box<dyn bar>).dup();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^ the trait `bar` cannot be made into an object
|
|
|
|
|
|
|
|
|
= note: method `dup` references the `Self` type in its arguments or return type
|
|
|
|
= note: method `blah` has generic type parameters
|
|
|
|
= note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<dyn bar>>` for `std::boxed::Box<{integer}>`
|
|
|
|
|
2018-09-20 02:21:29 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0038, E0107.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0038`.
|