@@ -956,7 +956,7 @@ first instance of `Foo` could be made to initialize another instance!
956956
957957Here's an example of a struct that has this problem:
958958
959- ```compile_fail
959+ ```ignore
960960struct Foo { x: Box<Foo> } // error
961961```
962962
@@ -977,7 +977,7 @@ are generic.
977977
978978This will cause an error:
979979
980- ```compile_fail
980+ ```ignore
981981#![feature(repr_simd)]
982982
983983#[repr(simd)]
@@ -1168,7 +1168,7 @@ for an explicit choice of the discriminant type. In either cases, the
11681168discriminant values must fall within a valid range for the expected type;
11691169otherwise this error is raised. For example:
11701170
1171- ```compile_fail
1171+ ```ignore
11721172#[repr(u8)]
11731173enum Thing {
11741174 A = 1024,
@@ -1179,7 +1179,7 @@ enum Thing {
11791179Here, 1024 lies outside the valid range for `u8`, so the discriminant for `A` is
11801180invalid. Here is another, more subtle example which depends on target word size:
11811181
1182- ```compile_fail
1182+ ```ignore
11831183enum DependsOnPointerSize {
11841184 A = 1 << 32
11851185}
@@ -2081,7 +2081,7 @@ E0193: r##"
20812081`where` clauses must use generic type parameters: it does not make sense to use
20822082them otherwise. An example causing this error:
20832083
2084- ```compile_fail
2084+ ```ignore
20852085trait Foo {
20862086 fn bar(&self);
20872087}
@@ -3145,7 +3145,7 @@ An attempt was made to access an associated constant through either a generic
31453145type parameter or `Self`. This is not supported yet. An example causing this
31463146error is shown below:
31473147
3148- ```compile_fail
3148+ ```ignore
31493149#![feature(associated_consts)]
31503150
31513151trait Foo {
@@ -3332,6 +3332,7 @@ The maximum value of an enum was reached, so it cannot be automatically
33323332set in the next enum value. Erroneous code example:
33333333
33343334```compile_fail
3335+ #[deny(overflowing_literals)]
33353336enum Foo {
33363337 X = 0x7fffffffffffffff,
33373338 Y, // error: enum discriminant overflowed on value after
0 commit comments