mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +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
|
|
|