@@ -956,7 +956,7 @@ first instance of `Foo` could be made to initialize another instance!
956
956
957
957
Here's an example of a struct that has this problem:
958
958
959
- ```compile_fail
959
+ ```ignore
960
960
struct Foo { x: Box<Foo> } // error
961
961
```
962
962
@@ -977,7 +977,7 @@ are generic.
977
977
978
978
This will cause an error:
979
979
980
- ```compile_fail
980
+ ```ignore
981
981
#![feature(repr_simd)]
982
982
983
983
#[repr(simd)]
@@ -1168,7 +1168,7 @@ for an explicit choice of the discriminant type. In either cases, the
1168
1168
discriminant values must fall within a valid range for the expected type;
1169
1169
otherwise this error is raised. For example:
1170
1170
1171
- ```compile_fail
1171
+ ```ignore
1172
1172
#[repr(u8)]
1173
1173
enum Thing {
1174
1174
A = 1024,
@@ -1179,7 +1179,7 @@ enum Thing {
1179
1179
Here, 1024 lies outside the valid range for `u8`, so the discriminant for `A` is
1180
1180
invalid. Here is another, more subtle example which depends on target word size:
1181
1181
1182
- ```compile_fail
1182
+ ```ignore
1183
1183
enum DependsOnPointerSize {
1184
1184
A = 1 << 32
1185
1185
}
@@ -2081,7 +2081,7 @@ E0193: r##"
2081
2081
`where` clauses must use generic type parameters: it does not make sense to use
2082
2082
them otherwise. An example causing this error:
2083
2083
2084
- ```compile_fail
2084
+ ```ignore
2085
2085
trait Foo {
2086
2086
fn bar(&self);
2087
2087
}
@@ -3145,7 +3145,7 @@ An attempt was made to access an associated constant through either a generic
3145
3145
type parameter or `Self`. This is not supported yet. An example causing this
3146
3146
error is shown below:
3147
3147
3148
- ```compile_fail
3148
+ ```ignore
3149
3149
#![feature(associated_consts)]
3150
3150
3151
3151
trait Foo {
@@ -3332,6 +3332,7 @@ The maximum value of an enum was reached, so it cannot be automatically
3332
3332
set in the next enum value. Erroneous code example:
3333
3333
3334
3334
```compile_fail
3335
+ #[deny(overflowing_literals)]
3335
3336
enum Foo {
3336
3337
X = 0x7fffffffffffffff,
3337
3338
Y, // error: enum discriminant overflowed on value after
0 commit comments