Add test case for deprecated attribute.

This commit is contained in:
Luqman Aden 2012-12-09 03:20:35 -05:00
parent 4b4c8331bb
commit a0d7b96170

View File

@ -0,0 +1,10 @@
#[forbid(deprecated_item)];
type Bar = uint;
#[deprecated = "use Bar instead"]
type Foo = int;
fn main() {
let _x: Foo = 21;
}