File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ pub type RustFn = fn();
28
28
pub type RustBadRet = extern fn ( ) -> Box < u32 > ;
29
29
pub type CVoidRet = ( ) ;
30
30
pub struct Foo ;
31
+ pub trait Bar { }
31
32
32
33
extern {
33
34
pub fn ptr_type1 ( size : * const Foo ) ; //~ ERROR: found struct without
@@ -36,7 +37,7 @@ extern {
36
37
pub fn str_type ( p : & str ) ; //~ ERROR: found Rust type
37
38
pub fn box_type ( p : Box < u32 > ) ; //~ ERROR found Rust type
38
39
pub fn char_type ( p : char ) ; //~ ERROR found Rust type
39
- pub fn trait_type ( p : & Clone ) ; //~ ERROR found Rust trait type
40
+ pub fn trait_type ( p : & Bar ) ; //~ ERROR found Rust trait type
40
41
pub fn tuple_type ( p : ( i32 , i32 ) ) ; //~ ERROR found Rust tuple type
41
42
pub fn tuple_type2 ( p : I32Pair ) ; //~ ERROR found Rust tuple type
42
43
pub fn zero_size ( p : ZeroSize ) ; //~ ERROR found zero-size struct
You can’t perform that action at this time.
0 commit comments