mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 11:47:13 +00:00

Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
16 lines
258 B
Rust
16 lines
258 B
Rust
//! This test checks that unused generics are rejected by compiler
|
|
|
|
enum Quux<T> {
|
|
//~^ ERROR: parameter `T` is never used
|
|
Bar,
|
|
}
|
|
|
|
fn foo(c: Quux) {
|
|
//~^ ERROR missing generics for enum `Quux`
|
|
assert!((false));
|
|
}
|
|
|
|
fn main() {
|
|
panic!();
|
|
}
|