rust/tests/ui/error-codes/E0276.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
126 B
Rust
Raw Normal View History

2016-08-05 20:18:01 +00:00
trait Foo {
fn foo<T>(x: T);
}
impl Foo for bool {
fn foo<T>(x: T) where T: Copy {} //~ ERROR E0276
}
fn main() {
}