File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ // FIXME: missing sysroot spans (#53081)
2
+ // ignore-i586-unknown-linux-gnu
3
+ // ignore-i586-unknown-linux-musl
4
+ // ignore-i686-unknown-linux-musl
5
+
1
6
fn test ( t : & dyn Iterator < Item =& u64 > ) -> u64 {
2
7
t. min ( ) . unwrap ( ) //~ ERROR the `min` method cannot be invoked on a trait object
3
8
}
Original file line number Diff line number Diff line change 1
1
error: the `min` method cannot be invoked on a trait object
2
- --> $DIR/imm-ref-trait-object.rs:2 :8
2
+ --> $DIR/imm-ref-trait-object.rs:7 :8
3
3
|
4
4
LL | t.min().unwrap()
5
5
| ^^^
Original file line number Diff line number Diff line change
1
+ // FIXME: missing sysroot spans (#53081)
2
+ // ignore-i586-unknown-linux-gnu
3
+ // ignore-i586-unknown-linux-musl
4
+ // ignore-i686-unknown-linux-musl
5
+
1
6
#![ feature( trait_alias) ]
2
7
3
8
trait EqAlias = Eq ;
Original file line number Diff line number Diff line change 1
1
error[E0038]: the trait `std::cmp::Eq` cannot be made into an object
2
- --> $DIR/trait-alias-object-fail.rs:7 :13
2
+ --> $DIR/trait-alias-object-fail.rs:12 :13
3
3
|
4
4
LL | let _: &dyn EqAlias = &123;
5
5
| ^^^^^^^^^^^ the trait `std::cmp::Eq` cannot be made into an object
@@ -10,7 +10,7 @@ LL | pub trait Eq: PartialEq<Self> {
10
10
| --------------- the trait cannot be made into an object because it uses `Self` as a type parameter in this
11
11
12
12
error[E0191]: the value of the associated type `Item` (from trait `std::iter::Iterator`) must be specified
13
- --> $DIR/trait-alias-object-fail.rs:9 :17
13
+ --> $DIR/trait-alias-object-fail.rs:14 :17
14
14
|
15
15
LL | let _: &dyn IteratorAlias = &vec![123].into_iter();
16
16
| ^^^^^^^^^^^^^ help: specify the associated type: `IteratorAlias<Item = Type>`
You can’t perform that action at this time.
0 commit comments