Skip to content

Commit a0d7b96

Browse files
committed
Add test case for deprecated attribute.
1 parent 4b4c833 commit a0d7b96

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#[forbid(deprecated_item)];
2+
3+
type Bar = uint;
4+
5+
#[deprecated = "use Bar instead"]
6+
type Foo = int;
7+
8+
fn main() {
9+
let _x: Foo = 21;
10+
}

0 commit comments

Comments
 (0)