]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/constant-in-expr-inherent-1.rs
Re-add #[allow(unused)] attr
[rust.git] / tests / ui / nll / user-annotations / constant-in-expr-inherent-1.rs
1 struct Foo<'a> { x: &'a u32 }
2
3 impl<'a> Foo<'a> {
4     const C: &'a u32 = &22;
5 }
6
7 fn foo<'a>(_: &'a u32) -> &'static u32 {
8     <Foo<'a>>::C //~ ERROR
9 }
10
11 fn main() {
12 }