File tree 2 files changed +3
-3
lines changed
src/test/ui-fulldeps/internal-lints
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ impl CustomStruct {
93
93
94
94
fn test_alias (
95
95
value : CustomAlias ,
96
- reference : & CustomAlias , //~ ERROR passing `CustomAlias<>` by reference
96
+ reference : & CustomAlias , //~ ERROR passing `CustomAlias<'_ >` by reference
97
97
) {
98
98
}
99
99
}
Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ error: passing `CustomStruct` by reference
94
94
LL | reference: &CustomStruct,
95
95
| ^^^^^^^^^^^^^ help: try passing by value: `CustomStruct`
96
96
97
- error: passing `CustomAlias<>` by reference
97
+ error: passing `CustomAlias<'_ >` by reference
98
98
--> $DIR/rustc_pass_by_value.rs:96:20
99
99
|
100
100
LL | reference: &CustomAlias,
101
- | ^^^^^^^^^^^^ help: try passing by value: `CustomAlias<>`
101
+ | ^^^^^^^^^^^^ help: try passing by value: `CustomAlias<'_ >`
102
102
103
103
error: passing `WithParameters<T, 1>` by reference
104
104
--> $DIR/rustc_pass_by_value.rs:110:20
You can’t perform that action at this time.
0 commit comments