mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
14 lines
290 B
Rust
14 lines
290 B
Rust
//! This test checks that we currently need to implement
|
|
//! members, even if their where bounds don't hold for the impl type.
|
|
|
|
trait Foo<T> {
|
|
fn foo()
|
|
where
|
|
Self: Foo<()>;
|
|
}
|
|
|
|
impl Foo<u32> for () {}
|
|
//~^ ERROR: not all trait items implemented, missing: `foo`
|
|
|
|
fn main() {}
|