summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17337.rs
blob: 193f89f83789713ceee17de020266ad0c9925ccc (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")]
    #[deprecated(since = "1.0.0", note = "text")]
    fn foo(self) {}
}

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