Fix tests
This commit is contained in:
parent
eb7abb9e32
commit
cb7264b22a
2 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ fn main() {
|
|||
let _ = STRUCT1; // ok
|
||||
let _: Struct1 = STRUCT1; // ok
|
||||
let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _: Struct1<isize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _: Struct1<isize> = Struct1 { field: 0 }; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
|
||||
// Instability is not enforced for generic type parameters used in public fields.
|
||||
// Note how the unstable type default `usize` leaks,
|
||||
|
@ -56,7 +56,7 @@ fn main() {
|
|||
let _ = STRUCT2;
|
||||
let _: Struct2 = STRUCT2; // ok
|
||||
let _: Struct2<usize> = STRUCT2; // ok
|
||||
let _: Struct2<usize> = STRUCT2; // ok
|
||||
let _: Struct2<isize> = Struct2 { field: 0 }; // ok
|
||||
let _ = STRUCT2.field; // ok
|
||||
let _: usize = STRUCT2.field; // ok
|
||||
let _ = STRUCT2.field + 1; // ok
|
||||
|
|
|
@ -23,7 +23,7 @@ LL | impl Trait2<usize> for S {
|
|||
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'unstable_default'
|
||||
--> $DIR/generics-default-stability.rs:37:20
|
||||
--> $DIR/generics-default-stability.rs:35:20
|
||||
|
|
||||
LL | let _: Struct1<isize> = Struct1 { field: 1 };
|
||||
| ^^^^^
|
||||
|
@ -31,7 +31,7 @@ LL | let _: Struct1<isize> = Struct1 { field: 1 };
|
|||
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'unstable_default'
|
||||
--> $DIR/generics-default-stability.rs:41:20
|
||||
--> $DIR/generics-default-stability.rs:39:20
|
||||
|
|
||||
LL | let _: Struct1<usize> = STRUCT1;
|
||||
| ^^^^^
|
||||
|
@ -39,9 +39,9 @@ LL | let _: Struct1<usize> = STRUCT1;
|
|||
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'unstable_default'
|
||||
--> $DIR/generics-default-stability.rs:42:20
|
||||
--> $DIR/generics-default-stability.rs:40:20
|
||||
|
|
||||
LL | let _: Struct1<usize> = STRUCT1;
|
||||
LL | let _: Struct1<isize> = Struct1 { field: 0 };
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
|
||||
|
|
Loading…
Reference in a new issue