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

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

19 lines
205 B
Rust
Raw Normal View History

//@ run-rustfix
#![allow(warnings)]
2016-08-19 14:44:47 +00:00
struct Bar;
trait Foo {
fn foo();
}
pub impl Bar {} //~ ERROR E0449
pub impl Foo for Bar { //~ ERROR E0449
pub fn foo() {} //~ ERROR E0449
}
fn main() {
}