rust/src/test/ui/issues/issue-2611-3.rs
2018-12-25 21:08:33 -07:00

20 lines
290 B
Rust

// compile-pass
#![allow(dead_code)]
// Tests that impls are allowed to have looser, more permissive bounds
// than the traits require.
trait A {
fn b<C:Sync,D>(&self, x: C) -> C;
}
struct E {
f: isize
}
impl A for E {
fn b<F,G>(&self, _x: F) -> F { panic!() }
}
pub fn main() {}