#![feature(negative_bounds, associated_type_bounds)] trait Trait { type Assoc; } fn test>() {} //~^ ERROR associated type constraints not allowed on negative bounds fn test2() where T: !Trait {} //~^ ERROR associated type constraints not allowed on negative bounds fn test3>() {} //~^ ERROR associated type constraints not allowed on negative bounds fn test4() where T: !Trait {} //~^ ERROR associated type constraints not allowed on negative bounds fn test5() where T: !Fn() -> i32 {} //~^ ERROR parenthetical notation may not be used for negative bounds fn main() {}