summary refs log tree commit diff
path: root/src/test/ui/issues/issue-17337.rs
blob: 3fd81401e00fd57d15679c5aea99f0180ddbcff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(staged_api)]
#![deny(deprecated)]

#![unstable(feature = "unstable_test_feature", issue = "none")]

struct Foo;

impl Foo {
    #[unstable(feature = "unstable_test_feature", issue = "none")]
    #[rustc_deprecated(since = "1.0.0", reason = "text")]
    fn foo(self) {}
}

fn main() {
    Foo
    .foo(); //~ ERROR use of deprecated
}