@@ -35,62 +35,51 @@ mod signatures {
35
35
use WillChange ;
36
36
37
37
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR no path
38
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR no path
39
38
trait Bar {
40
39
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
41
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
42
40
fn do_something ( x : WillChange ) ;
43
41
}
44
42
45
43
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
46
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
47
44
fn some_fn ( x : WillChange ) { }
48
45
49
46
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
50
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
51
47
fn new_foo ( x : u32 , y : u32 ) -> WillChange {
52
48
WillChange { x : x, y : y }
53
49
}
54
50
55
51
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
56
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
57
52
impl WillChange {
58
53
fn new ( x : u32 , y : u32 ) -> WillChange { loop { } }
59
54
}
60
55
61
56
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
62
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
63
57
impl WillChange {
64
58
fn method ( & self , x : u32 ) { }
65
59
}
66
60
67
61
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
68
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
69
62
struct WillChanges {
70
63
x : WillChange ,
71
64
y : WillChange
72
65
}
73
66
74
67
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR OK
75
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR OK
76
68
fn indirect ( x : WillChanges ) { }
77
69
}
78
70
79
71
mod invalid_signatures {
80
72
use WontChange ;
81
73
82
74
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR no path
83
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR no path
84
75
trait A {
85
76
fn do_something_else_twice ( x : WontChange ) ;
86
77
}
87
78
88
79
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR no path
89
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR no path
90
80
fn b ( x : WontChange ) { }
91
81
92
82
#[ rustc_then_this_would_need( ItemSignature ) ] //~ ERROR no path from `WillChange`
93
- #[ rustc_then_this_would_need( CollectItem ) ] //~ ERROR no path from `WillChange`
94
83
fn c ( x : u32 ) { }
95
84
}
96
85
0 commit comments