// FIXME(chalk): should fail, see comments // check-fail // compile-flags: -Z chalk #![feature(trivial_bounds)] trait Bar { fn foo(); } trait Foo: Bar { } struct S where S: Foo; impl Foo for S { } fn bar() { T::foo(); } fn foo() { bar::() } fn main() { // For some reason, the error is duplicated... foo::() //~ ERROR the type `S` is not well-formed (chalk) //~^ ERROR the type `S` is not well-formed (chalk) }