mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
306 B
Rust
18 lines
306 B
Rust
//@ run-rustfix
|
|
#![allow(dead_code)]
|
|
|
|
trait T {
|
|
unsafe fn foo(a: &usize, b: &usize) -> usize;
|
|
fn bar(&self, a: &usize, b: &usize) -> usize;
|
|
}
|
|
|
|
mod foo {
|
|
use super::T;
|
|
impl T for () {} //~ ERROR not all trait items
|
|
|
|
impl T for usize { //~ ERROR not all trait items
|
|
}
|
|
}
|
|
|
|
fn main() {}
|