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