blob: 43111c01c755ba5d65741541a3340b8216468378 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//@ 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() {}
|