mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
7 lines
205 B
Rust
7 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() {}
|