Skip to content

Commit

Permalink
Auto merge of #60277 - estebank:relate-ice, r=varkor
Browse files Browse the repository at this point in the history
Don't ICE when relating const type args

Fix #60263.

r? @varkor
  • Loading branch information
bors committed May 7, 2019
2 parents f5371a5 + 7508086 commit 17dba3b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/ui/const-generics/issue-60263.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
struct B<const I: u8>; //~ ERROR const generics are unstable

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

fn main() {}
12 changes: 12 additions & 0 deletions src/test/ui/const-generics/issue-60263.stderr
Original file line number Diff line number Diff line change
@@ -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 17dba3b

Please sign in to comment.