Rollup merge of #70806 - RalfJung:miri-assignment-check, r=eddyb

fix Miri assignment sanity check

Thanks @eddyb for pointing me to the right APIs!

r? @eddyb
Fixes https://github.com/rust-lang/rust/issues/70804
This commit is contained in:
Dylan DPC 2020-04-05 13:13:14 +02:00 committed by GitHub
commit 31b8d65803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 19 deletions

View file

@ -0,0 +1,10 @@
// check-pass
#![feature(const_fn)]
const fn nested(x: (for<'a> fn(&'a ()), String)) -> (fn(&'static ()), String) {
x
}
pub const TEST: (fn(&'static ()), String) = nested((|_x| (), String::new()));
fn main() {}