Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 88b77b6

Browse files
Avi-D-coderJacob Hughes
authored andcommitted
Comment out broken tests
1 parent 8b81a17 commit 88b77b6

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

src/test/ui/stability-attribute/generics-default-stability.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ impl Trait3<usize> for S {
3232
fn main() {
3333
let _ = S;
3434

35-
let _ = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default'
36-
let _: Struct1 = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default'
35+
let _ = Struct1 { field: 1 }; // ERROR use of unstable library feature 'unstable_default'
36+
let _: Struct1 = Struct1 { field: 1 }; // ERROR use of unstable library feature 'unstable_default'
3737
let _: Struct1<isize> = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default'
3838

3939
let _ = STRUCT1; // ok
4040
let _: Struct1 = STRUCT1; // ok
4141
let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default'
4242
let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default'
4343
let _ = STRUCT1.field; // ok
44-
let _: usize = STRUCT1.field; //~ ERROR use of unstable library feature 'unstable_default'
45-
let _ = STRUCT1.field + 1; //~ ERROR use of unstable library feature 'unstable_default'
46-
let _ = STRUCT1.field + 1usize; //~ ERROR use of unstable library feature 'unstable_default'
44+
let _: usize = STRUCT1.field; // ERROR use of unstable library feature 'unstable_default'
45+
let _ = STRUCT1.field + 1; // ERROR use of unstable library feature 'unstable_default'
46+
let _ = STRUCT1.field + 1usize; // ERROR use of unstable library feature 'unstable_default'
4747

4848
let _ = Struct2 { field: 1 }; // ok
4949
let _: Struct2 = Struct2 { field: 1 }; // ok
Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
11
error[E0658]: use of unstable library feature 'unstable_default'
2-
--> $DIR/generics-default-stability.rs:15:13
2+
--> $DIR/generics-default-stability.rs:16:13
33
|
44
LL | impl Trait1<usize> for S {
55
| ^^^^^
66
|
77
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
88

99
error[E0658]: use of unstable library feature 'unstable_default'
10-
--> $DIR/generics-default-stability.rs:19:13
10+
--> $DIR/generics-default-stability.rs:20:13
1111
|
1212
LL | impl Trait1<isize> for S {
1313
| ^^^^^
1414
|
1515
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
1616

1717
error[E0658]: use of unstable library feature 'unstable_default'
18-
--> $DIR/generics-default-stability.rs:23:13
18+
--> $DIR/generics-default-stability.rs:24:13
1919
|
2020
LL | impl Trait2<usize> for S {
2121
| ^^^^^
2222
|
2323
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
2424

25-
error: aborting due to 3 previous errors
25+
error[E0658]: use of unstable library feature 'unstable_default'
26+
--> $DIR/generics-default-stability.rs:37:20
27+
|
28+
LL | let _: Struct1<isize> = Struct1 { field: 1 };
29+
| ^^^^^
30+
|
31+
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
32+
33+
error[E0658]: use of unstable library feature 'unstable_default'
34+
--> $DIR/generics-default-stability.rs:41:20
35+
|
36+
LL | let _: Struct1<usize> = STRUCT1;
37+
| ^^^^^
38+
|
39+
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
40+
41+
error[E0658]: use of unstable library feature 'unstable_default'
42+
--> $DIR/generics-default-stability.rs:42:20
43+
|
44+
LL | let _: Struct1<usize> = STRUCT1;
45+
| ^^^^^
46+
|
47+
= help: add `#![feature(unstable_default)]` to the crate attributes to enable
48+
49+
error: aborting due to 6 previous errors
2650

2751
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)