diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-03 04:08:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 04:08:12 +0200 |
| commit | 17b1fd1a8f1cdb9fbe1220aa5f7d8d568be6b4aa (patch) | |
| tree | 1acee9560f83e67d614228997bd1fc8068191ce3 /src/test/ui/error-codes | |
| parent | 3e15e51acd68c784585469fc07dc12b41931ba2d (diff) | |
| parent | a180294f8bb5653c844c9ca4a457a7e4bc47e162 (diff) | |
| download | rust-17b1fd1a8f1cdb9fbe1220aa5f7d8d568be6b4aa.tar.gz rust-17b1fd1a8f1cdb9fbe1220aa5f7d8d568be6b4aa.zip | |
Rollup merge of #64931 - estebank:missing-param-ref, r=matthewjasper,Centril
Reword E0392 slightly Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`. CC #53589.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0392.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0392.stderr b/src/test/ui/error-codes/E0392.stderr index d0b808df184..25cd9984052 100644 --- a/src/test/ui/error-codes/E0392.stderr +++ b/src/test/ui/error-codes/E0392.stderr @@ -4,7 +4,7 @@ error[E0392]: parameter `T` is never used LL | enum Foo<T> { Bar } | ^ unused parameter | - = help: consider removing `T` or using a marker such as `std::marker::PhantomData` + = help: consider removing `T`, refering to it in a field, or using a marker such as `std::marker::PhantomData` error: aborting due to previous error |
