An unnecessary type parameter was given in a type alias.
Erroneous code example:
#![allow(unused)]
fn main() {
type Foo<T> = u32; // error: type parameter `T` is never used
// or:
type Foo<A, B> = Box<A>; // error: type parameter `B` is never used
} Please check you didn't write too many parameters. Example:
#![allow(unused)]
fn main() {
type Foo = u32; // ok!
type Foo2<A> = Box<A>; // ok!
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0091.html