We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b4c833 commit a0d7b96Copy full SHA for a0d7b96
src/test/compile-fail/lint-deprecated-items.rs
@@ -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