]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17337.rs
Rollup merge of #94670 - xFrednet:rfc-2383-expect-impl-after-party, r=flip1995,wesley...
[rust.git] / src / test / ui / issues / issue-17337.rs
1 #![feature(staged_api)]
2 #![deny(deprecated)]
3
4 #![unstable(feature = "unstable_test_feature", issue = "none")]
5
6 struct Foo;
7
8 impl Foo {
9     #[unstable(feature = "unstable_test_feature", issue = "none")]
10     #[deprecated(since = "1.0.0", note = "text")]
11     fn foo(self) {}
12 }
13
14 fn main() {
15     Foo
16     .foo(); //~ ERROR use of deprecated
17 }