Work on type inference for ADT patterns
This commit is contained in:
committed by
Aleksey Kladov
parent
5648dcd36e
commit
3b0de53904
@@ -362,7 +362,10 @@ fn test(x: &str, y: isize) {
|
||||
fn infer_pattern() {
|
||||
check_inference(
|
||||
r#"
|
||||
enum E { A { x: usize }, B }
|
||||
enum E {
|
||||
A { x: usize },
|
||||
B
|
||||
}
|
||||
|
||||
fn test(x: &i32) {
|
||||
let y = x;
|
||||
|
||||
Reference in New Issue
Block a user