diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-17337.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-17337.rs b/src/test/ui/issues/issue-17337.rs new file mode 100644 index 000000000..193f89f83 --- /dev/null +++ b/src/test/ui/issues/issue-17337.rs @@ -0,0 +1,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 +} |