blob: 46fdd3737fa707035a46c8f79b871cfbbe5c58c9 [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/17904>.
// 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() {}