1 // Regression test for the ICE described in #95665.
2 // Ensure that the expected error is output (and thus that there is no ICE)
6 pub struct Struct<T: Trait> {
10 // uncomment and bug goes away
11 // impl Trait for u8 {}
14 static VAR: Struct<u8>;
15 //~^ 14:17: 14:27: the trait bound `u8: Trait` is not satisfied [E0277]