diff options
Diffstat (limited to 'src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs')
-rw-r--r-- | src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs b/src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs deleted file mode 100644 index e3a8a5f58..000000000 --- a/src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs +++ /dev/null @@ -1,12 +0,0 @@ -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() { -} |