rust/tests/ui/issues/issue-17337.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
337 B
Rust
Raw Normal View History

#![feature(staged_api)]
#![deny(deprecated)]
#![unstable(feature = "unstable_test_feature", issue = "none")]
2015-11-16 10:54:28 -06:00
struct Foo;
impl Foo {
#[unstable(feature = "unstable_test_feature", issue = "none")]
2022-03-04 20:59:18 -06:00
#[deprecated(since = "1.0.0", note = "text")]
fn foo(self) {}
}
fn main() {
Foo
.foo(); //~ ERROR use of deprecated
}