rust/src/test/ui/parser/issue-32214.rs

7 lines
164 B
Rust
Raw Normal View History

trait Trait<T> { type Item; }
pub fn test<W, I: Trait<Item=(), W> >() {}
//~^ ERROR constraints in a path segment must come after generic arguments
fn main() { }