We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7e422 commit 86357c3Copy full SHA for 86357c3
src/test/compile-fail/issue-5035.rs
@@ -9,7 +9,7 @@
9
// except according to those terms.
10
11
trait I {}
12
-type K = I;
+type K = I; //~ NOTE: type defined here
13
impl K for isize {} //~ ERROR: `K` is not a trait
14
//~^ NOTE: `type` aliases cannot be used for traits
15
fn main() {}
0 commit comments