Skip to content

Commit

Permalink
Comment out broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-D-coder authored and Jacob Hughes committed Sep 23, 2020
1 parent 8b81a17 commit 88b77b6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/test/ui/stability-attribute/generics-default-stability.rs
Expand Up @@ -32,18 +32,18 @@ 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
let _: Struct1 = STRUCT1; // ok
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
Expand Down
32 changes: 28 additions & 4 deletions src/test/ui/stability-attribute/generics-default-stability.stderr
@@ -1,27 +1,51 @@
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 {
| ^^^^^
|
= 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 {
| ^^^^^
|
= 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`.

0 comments on commit 88b77b6

Please sign in to comment.