]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17337.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[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     #[rustc_deprecated(since = "1.0.0", reason = "text")]
11     fn foo(self) {}
12 }
13
14 fn main() {
15     Foo
16     .foo(); //~ ERROR use of deprecated
17 }