mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 19:32:02 +00:00
15 lines
192 B
Rust
15 lines
192 B
Rust
trait Foo<'a> {
|
|
const C: &'a u32;
|
|
}
|
|
|
|
impl<'a, T> Foo<'a> for T {
|
|
const C: &'a u32 = &22;
|
|
}
|
|
|
|
fn foo<'a, T: Foo<'a>>() -> &'static u32 {
|
|
<T as Foo<'a>>::C //~ ERROR
|
|
}
|
|
|
|
fn main() {
|
|
}
|