mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
10 lines
267 B
Rust
10 lines
267 B
Rust
trait A { }
|
|
|
|
impl A for isize {
|
|
const BAR: () = (); //~ ERROR const `BAR` is not a member of trait `A`
|
|
type Baz = (); //~ ERROR type `Baz` is not a member of trait `A`
|
|
fn foo(&self) { } //~ ERROR method `foo` is not a member of trait `A`
|
|
}
|
|
|
|
fn main() { }
|