Skip to content
Permalink
Browse files

Don't ICE when relating const type args

  • Loading branch information...
estebank committed Apr 25, 2019
1 parent 08bfe16 commit 750808680add716394e94b4abb2a711b01400fb2
Showing with 21 additions and 0 deletions.
  1. +9 −0 src/test/ui/const-generics/issue-60263.rs
  2. +12 −0 src/test/ui/const-generics/issue-60263.stderr
@@ -0,0 +1,9 @@
struct B<const I: u8>; //~ ERROR const generics are unstable

impl B<0> {
fn bug() -> Self {
panic!()
}
}

fn main() {}
@@ -0,0 +1,12 @@
error[E0658]: const generics are unstable
--> $DIR/issue-60263.rs:1:16
|
LL | struct B<const I: u8>;
| ^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/44580
= help: add #![feature(const_generics)] to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.

0 comments on commit 7508086

Please sign in to comment.
You can’t perform that action at this time.