//@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) //@[next] compile-flags: -Znext-solver #![feature(negative_bounds)] #![feature(sized_hierarchy)] use std::marker::MetaSized; fn foo() {} fn bar() { foo::(); //~^ ERROR the trait bound `T: !MetaSized` is not satisfied } fn main() { foo::<()>(); //~^ ERROR the trait bound `(): !MetaSized` is not satisfied foo::(); //~^ ERROR the trait bound `str: !MetaSized` is not satisfied }