Skip to content

Commit ac2bab7

Browse files
committed
fixup of codegen/ref-dyn-trait-in-structs-and-enums.rs
1 parent 94017c0 commit ac2bab7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/ui/codegen/ref-dyn-trait-in-structs-and-enums.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! Ensure code generation when using polymorphic references does not trigger an LLVM assertion
1+
//! Regression test for an LLVM assertion that used to be hit when:
22
//!
3-
//! This is checked in three methods:
4-
//! - `&dyn MyTrait` references in an enum variant wrapped in an unnamed field of a struct
5-
//! - `&dyn MyTrait` references in an `Option` for a named field in a struct
6-
//! - `&dyn MyTrait` references in an `Option` for an unnamed field in a struct
3+
//! - There's a generic enum contained within a tuple struct
4+
//! - When the tuple struct is parameterized by some lifetime `'a`
5+
//! - The enum is concretized with its type argument being a reference to a trait object (of
6+
//! lifetime `'a`)
77
//!
88
//! Issue: <https://github.com/rust-lang/rust/issues/9719>
99

0 commit comments

Comments
 (0)