rust/tests/ui/associated-consts/wrong-projection-self-ty-invalid-bivariant-arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
229 B
Rust
Raw Normal View History

struct Fail<T>;
//~^ ERROR: type parameter `T` is never used
impl Fail<i32> {
const C: () = ();
}
fn main() {
Fail::<()>::C
//~^ ERROR no associated item named `C` found for struct `Fail<()>` in the current scope
}