#![feature(negative_bounds, associated_type_bounds)] //~^ WARN the feature `negative_bounds` is incomplete and may not be safe to use and/or cause compiler crashes 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 main() {}