summary refs log tree commit diff
path: root/src/test/ui/issues/issue-17337.rs
blob: 65f2f8fc5ac6cce6be5596a61945bcd3902afc1e (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 item
}