2024-06-10 05:15:37 -05:00
|
|
|
struct Fail<T>;
|
|
|
|
//~^ ERROR: type parameter `T` is never used
|
|
|
|
|
|
|
|
impl Fail<i32> {
|
|
|
|
const C: () = ();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Fail::<()>::C
|
2024-08-13 21:17:01 -05:00
|
|
|
//~^ ERROR no associated item named `C` found for struct `Fail<()>` in the current scope
|
2024-06-10 05:15:37 -05:00
|
|
|
}
|