Comment out broken tests
This commit is contained in:
parent
8b81a17d73
commit
88b77b6534
2 changed files with 33 additions and 9 deletions
|
@ -32,8 +32,8 @@ impl Trait3<usize> for S {
|
|||
fn main() {
|
||||
let _ = S;
|
||||
|
||||
let _ = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _: Struct1 = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _ = Struct1 { field: 1 }; // ERROR use of unstable library feature 'unstable_default'
|
||||
let _: Struct1 = Struct1 { field: 1 }; // ERROR use of unstable library feature 'unstable_default'
|
||||
let _: Struct1<isize> = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
|
||||
let _ = STRUCT1; // ok
|
||||
|
@ -41,9 +41,9 @@ fn main() {
|
|||
let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _ = STRUCT1.field; // ok
|
||||
let _: usize = STRUCT1.field; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _ = STRUCT1.field + 1; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _ = STRUCT1.field + 1usize; //~ ERROR use of unstable library feature 'unstable_default'
|
||||
let _: usize = STRUCT1.field; // ERROR use of unstable library feature 'unstable_default'
|
||||
let _ = STRUCT1.field + 1; // ERROR use of unstable library feature 'unstable_default'
|
||||
let _ = STRUCT1.field + 1usize; // ERROR use of unstable library feature 'unstable_default'
|
||||
|
||||
let _ = Struct2 { field: 1 }; // ok
|
||||
let _: Struct2 = Struct2 { field: 1 }; // ok
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0658]: use of unstable library feature 'unstable_default'
|
||||
--> $DIR/generics-default-stability.rs:15:13
|
||||
--> $DIR/generics-default-stability.rs:16:13
|
||||
|
|
||||
LL | impl Trait1<usize> for S {
|
||||
| ^^^^^
|
||||
|
@ -7,7 +7,7 @@ LL | impl Trait1<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:19:13
|
||||
--> $DIR/generics-default-stability.rs:20:13
|
||||
|
|
||||
LL | impl Trait1<isize> for S {
|
||||
| ^^^^^
|
||||
|
@ -15,13 +15,37 @@ LL | impl Trait1<isize> 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:23:13
|
||||
--> $DIR/generics-default-stability.rs:24:13
|
||||
|
|
||||
LL | impl Trait2<usize> for S {
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
error[E0658]: use of unstable library feature 'unstable_default'
|
||||
--> $DIR/generics-default-stability.rs:37:20
|
||||
|
|
||||
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
|
||||
|
|
||||
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
|
||||
|
|
||||
LL | let _: Struct1<usize> = STRUCT1;
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
||||
|
|
Loading…
Reference in a new issue