Closed
Description
type Foo<'a, T> = &'a T;
struct Bar;
fn foo() {
let x: Foo<'static, Bar, 'static>;
}
Errors:
Compiling playground v0.0.1 (/playground)
error[E0107]: wrong number of lifetime arguments: expected 1, found 2
--> src/lib.rs:6:25
|
6 | let x: Foo<'static, Bar, 'static>;
| ^^^ unexpected lifetime argument
error: aborting due to previous error
For more information about this error, try `rustc --explain E0107`.
error: could not compile `playground`.
To learn more, run the command again with --verbose.
@rustbot modify labels: A-diagnostics, D-confusing, T-compiler, D-papercut, C-bug