mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
13 lines
166 B
Rust
13 lines
166 B
Rust
![]() |
struct Foo<'a> { x: &'a u32 }
|
||
|
|
||
|
impl<'a> Foo<'a> {
|
||
|
const C: &'a u32 = &22;
|
||
|
}
|
||
|
|
||
|
fn foo<'a>(_: &'a u32) -> &'static u32 {
|
||
|
<Foo<'a>>::C //~ ERROR
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
}
|