@@ -931,7 +931,7 @@ first instance of `Foo` could be made to initialize another instance!
931931
932932Here's an example of a struct that has this problem:
933933
934- ```compile_fail
934+ ```ignore
935935struct Foo { x: Box<Foo> } // error
936936```
937937
@@ -952,7 +952,7 @@ are generic.
952952
953953This will cause an error:
954954
955- ```compile_fail
955+ ```ignore
956956#![feature(repr_simd)]
957957
958958#[repr(simd)]
@@ -1143,7 +1143,7 @@ for an explicit choice of the discriminant type. In either cases, the
11431143discriminant values must fall within a valid range for the expected type;
11441144otherwise this error is raised. For example:
11451145
1146- ```compile_fail
1146+ ```ignore
11471147#[repr(u8)]
11481148enum Thing {
11491149 A = 1024,
@@ -1154,7 +1154,7 @@ enum Thing {
11541154Here, 1024 lies outside the valid range for `u8`, so the discriminant for `A` is
11551155invalid. Here is another, more subtle example which depends on target word size:
11561156
1157- ```compile_fail
1157+ ```ignore
11581158enum DependsOnPointerSize {
11591159 A = 1 << 32
11601160}
@@ -2076,7 +2076,7 @@ E0193: r##"
20762076`where` clauses must use generic type parameters: it does not make sense to use
20772077them otherwise. An example causing this error:
20782078
2079- ```compile_fail
2079+ ```ignore
20802080trait Foo {
20812081 fn bar(&self);
20822082}
@@ -3140,7 +3140,7 @@ An attempt was made to access an associated constant through either a generic
31403140type parameter or `Self`. This is not supported yet. An example causing this
31413141error is shown below:
31423142
3143- ```compile_fail
3143+ ```ignore
31443144#![feature(associated_consts)]
31453145
31463146trait Foo {
@@ -3327,6 +3327,7 @@ The maximum value of an enum was reached, so it cannot be automatically
33273327set in the next enum value. Erroneous code example:
33283328
33293329```compile_fail
3330+ #[deny(overflowing_literals)]
33303331enum Foo {
33313332 X = 0x7fffffffffffffff,
33323333 Y, // error: enum discriminant overflowed on value after
0 commit comments