Closed
Description
I was working on #32777 and trying to generate E0245. I came up with the following example:
struct Foo(u8);
fn foo<T>(t: T)
where T: Foo {
}
I believe this should return E0245, as Foo
is not a trait, so it cannot be used as a bound. However, the compiler gives error E404, which states that Foo
is not a trait, so it cannot be implemented for a type (according to https://doc.rust-lang.org/error-index.html#E0404).