mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-02 14:07:10 +00:00
13 lines
205 B
Rust
13 lines
205 B
Rust
trait Foo {
|
|
fn foo<S>(s: S) -> impl Sized;
|
|
}
|
|
|
|
trait Bar {}
|
|
|
|
impl Foo for () {
|
|
fn foo<S>(s: S) -> impl Sized where S: Bar {}
|
|
//~^ ERROR impl has stricter requirements than trait
|
|
}
|
|
|
|
fn main() {}
|