]>
Commit | Line | Data |
---|---|---|
85aaf69f | 1 | #![feature(staged_api)] |
1a4d82fc | 2 | #![deny(deprecated)] |
223e47cc | 3 | |
dfeec247 | 4 | #![unstable(feature = "unstable_test_feature", issue = "none")] |
92a42be0 | 5 | |
1a4d82fc | 6 | struct Foo; |
223e47cc | 7 | |
1a4d82fc | 8 | impl Foo { |
dfeec247 | 9 | #[unstable(feature = "unstable_test_feature", issue = "none")] |
92a42be0 | 10 | #[rustc_deprecated(since = "1.0.0", reason = "text")] |
1a4d82fc | 11 | fn foo(self) {} |
223e47cc LB |
12 | } |
13 | ||
14 | fn main() { | |
1a4d82fc | 15 | Foo |
3dfed10e | 16 | .foo(); //~ ERROR use of deprecated |
223e47cc | 17 | } |