about summary refs log tree commit diff
path: root/tests/ui/wf/issue-95665.rs
blob: 422ffd11ee3f9e7b4f09398547fb8b67ae688c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Regression test for the ICE described in #95665.
// Ensure that the expected error is output (and thus that there is no ICE)

pub trait Trait: {}

pub struct Struct<T: Trait> {
    member: T,
}

// uncomment and bug goes away
// impl Trait for u8 {}

extern "C" {
    static VAR: Struct<u8>;
    //~^ ERROR the trait bound `u8: Trait` is not satisfied [E0277]
}

fn main() {}