From a0d7b961706f1f808e7dd244e8bbd9515c073196 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Sun, 9 Dec 2012 03:20:35 -0500 Subject: [PATCH] Add test case for deprecated attribute. --- src/test/compile-fail/lint-deprecated-items.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/compile-fail/lint-deprecated-items.rs diff --git a/src/test/compile-fail/lint-deprecated-items.rs b/src/test/compile-fail/lint-deprecated-items.rs new file mode 100644 index 00000000000..5933ebe8617 --- /dev/null +++ b/src/test/compile-fail/lint-deprecated-items.rs @@ -0,0 +1,10 @@ +#[forbid(deprecated_item)]; + +type Bar = uint; + +#[deprecated = "use Bar instead"] +type Foo = int; + +fn main() { + let _x: Foo = 21; +}