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