blob: e796b87b1878423d27d1044dac39ecfa8e554535 [file]
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@ compile-flags: -Zwrite-long-types-to-disk=yes
trait Foo {}
struct Bar<T>(T);
impl<T> Foo for T where Bar<T>: Foo {}
//[current]~^ ERROR E0275
fn is_foo<T: Foo>() {}
//[current]~^ ERROR E0275
fn main() {
is_foo::<()>();
//[next]~^ ERROR E0275
}