2015-01-21 20:21:14 -06:00
|
|
|
#![feature(staged_api)]
|
2014-09-17 05:34:18 -05:00
|
|
|
#![deny(deprecated)]
|
|
|
|
|
2019-12-21 05:16:18 -06:00
|
|
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
2015-11-16 10:54:28 -06:00
|
|
|
|
2014-09-17 05:34:18 -05:00
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
2019-12-21 05:16:18 -06:00
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
2022-03-04 20:59:18 -06:00
|
|
|
#[deprecated(since = "1.0.0", note = "text")]
|
2014-09-17 05:34:18 -05:00
|
|
|
fn foo(self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Foo
|
2020-07-25 12:49:46 -05:00
|
|
|
.foo(); //~ ERROR use of deprecated
|
2014-09-17 05:34:18 -05:00
|
|
|
}
|