Update src/test/codegen/debug-vtable.rs

Co-authored-by: r00ster <r00ster91@protonmail.com>
This commit is contained in:
Wesley Wiser 2021-10-19 11:36:21 -04:00 committed by GitHub
parent bf39d86e0f
commit 5929cf0d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ pub fn foo(x: &Foo) -> (u32, (u64, i8), &dyn Send) {
// Constructing the debuginfo name for the FnOnce vtable below initially caused an ICE on MSVC
// because the trait type contains a late bound region that needed to be erased before the type
// layout for the niche enum `Option<&dyn Fn()>` could can be computed.
// layout for the niche enum `Option<&dyn Fn()>` could be computed.
pub fn bar() -> Box<dyn FnOnce(Option<&dyn Fn()>)> {
Box::new(|_x: Option<&dyn Fn()>| {})
}