Auto merge of #49403 - oli-obk:try2, r=eddyb
Trim discriminants to their final type size r? @eddyb fixes #49181
This commit is contained in:
commit
4379c86fe7
2 changed files with 38 additions and 6 deletions
|
|
@ -94,6 +94,13 @@ fn issue_14576() {
|
|||
const F : C = C::D;
|
||||
|
||||
assert_eq!(match C::D { F => 1, _ => 2, }, 1);
|
||||
|
||||
// test gaps
|
||||
#[derive(PartialEq, Eq)]
|
||||
enum G { H = 3, I = 5 }
|
||||
const K : G = G::I;
|
||||
|
||||
assert_eq!(match G::I { K => 1, _ => 2, }, 1);
|
||||
}
|
||||
|
||||
fn issue_13731() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue