Skip to content

Commit

Permalink
Update src/test/codegen/debug-vtable.rs
Browse files Browse the repository at this point in the history
Co-authored-by: r00ster <r00ster91@protonmail.com>
  • Loading branch information
wesleywiser and wooster0 committed Oct 19, 2021
1 parent bf39d86 commit 5929cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/codegen/debug-vtable.rs
Expand Up @@ -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()>| {})
}

0 comments on commit 5929cf0

Please sign in to comment.