mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
18 lines
514 B
Plaintext
18 lines
514 B
Plaintext
error: item has unused generic parameters
|
|
--> $DIR/lifetimes.rs:10:8
|
|
|
|
|
LL | pub fn unused<'a, T>(_: &'a u32) {
|
|
| ^^^^^^ - generic parameter `T` is unused
|
|
|
|
error: item has unused generic parameters
|
|
--> $DIR/lifetimes.rs:17:19
|
|
|
|
|
LL | pub fn used<'a, T: Default>(_: &'a u32) -> u32 {
|
|
| - generic parameter `T` is unused
|
|
LL | let _: T = Default::default();
|
|
LL | let add_one = |x: u32| x + 1;
|
|
| ^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|