mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
253 B
Rust
13 lines
253 B
Rust
//@ known-bug: #121816
|
|
fn f<'a, T>(_: &'static &'a (), x: &'a T) -> &'static T {
|
|
x
|
|
}
|
|
trait W<'a> {
|
|
fn g<T>(self, x: &'a T) -> &'static T;
|
|
}
|
|
impl<'a> W<'a> for &'static () {
|
|
fn g<T>(self, x: &'a T) -> &'static T {
|
|
f(&self, x)
|
|
}
|
|
}
|