mirror of https://github.com/rust-lang/rust
36 lines
899 B
Plaintext
36 lines
899 B
Plaintext
error: item has unused generic parameters
|
|
--> $DIR/functions.rs:14:8
|
|
|
|
|
LL | pub fn unused<T>() {
|
|
| ^^^^^^ - generic parameter `T` is unused
|
|
|
|
error: item has unused generic parameters
|
|
--> $DIR/functions.rs:45:12
|
|
|
|
|
LL | impl<F: Default> Foo<F> {
|
|
| - generic parameter `F` is unused
|
|
...
|
|
LL | pub fn unused_impl() {
|
|
| ^^^^^^^^^^^
|
|
|
|
error: item has unused generic parameters
|
|
--> $DIR/functions.rs:51:12
|
|
|
|
|
LL | impl<F: Default> Foo<F> {
|
|
| - generic parameter `F` is unused
|
|
...
|
|
LL | pub fn unused_both<G: Default>() {
|
|
| ^^^^^^^^^^^ - generic parameter `G` is unused
|
|
|
|
error: item has unused generic parameters
|
|
--> $DIR/functions.rs:63:12
|
|
|
|
|
LL | impl<F: Default> Foo<F> {
|
|
| - generic parameter `F` is unused
|
|
...
|
|
LL | pub fn used_fn<G: Default>() {
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|