10 fn issue_35128_minimal() {
11 static FOO: &'static str = "foo";
17 type DeprecatedType = u8;
18 struct DeprecatedStruct;
20 trait DeprecatedTrait {}
21 static DEPRECATED_STATIC: u8 = 0;
22 const DEPRECATED_CONST: u8 = 1;
24 struct Foo(DeprecatedType);
26 impl DeprecatedTrait for Foo {}
29 fn bar<T: DeprecatedTrait>() {
43 type DeprecatedType = u8;
45 struct DeprecatedStruct;
49 trait DeprecatedTrait {}
51 static DEPRECATED_STATIC: u8 = 0;
53 const DEPRECATED_CONST: u8 = 1;
55 struct Foo(DeprecatedType); //~ ERROR use of deprecated type alias
57 impl DeprecatedTrait for Foo {} //~ ERROR use of deprecated trait
60 fn bar<T: DeprecatedTrait>() { //~ ERROR use of deprecated trait
61 deprecated_fn(); //~ ERROR use of deprecated function
66 DEPRECATED_STATIC + //~ ERROR use of deprecated static
67 DEPRECATED_CONST //~ ERROR use of deprecated const