Use the correct type for static qualifs

This commit is contained in:
Matthew Jasper 2019-12-25 21:09:51 +00:00
parent ed33453a37
commit 5d19d4d894
2 changed files with 22 additions and 9 deletions

View file

@ -0,0 +1,14 @@
// regression test for #67609.
// check-pass
static NONE: Option<String> = None;
static NONE_REF_REF: &&Option<String> = {
let x = &&NONE;
x
};
fn main() {
println!("{:?}", NONE_REF_REF);
}