mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
19 lines
205 B
Rust
19 lines
205 B
Rust
//@ run-rustfix
|
|
|
|
#![allow(warnings)]
|
|
|
|
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() {
|
|
}
|