rust/tests/ui/issues/issue-17904-2.rs
2023-01-11 09:32:08 +00:00

6 lines
205 B
Rust

// Test that we can parse a unit struct with a where clause, even if
// it leads to an error later on since `T` is unused.
struct Foo<T> where T: Copy; //~ ERROR parameter `T` is never used
fn main() {}