-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't require
Drop
for [PhantomData<T>; N]
where N
and T
are …
…generic, if `T` requires `Drop`
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// build-pass | ||
|
||
pub const fn f<T, const N: usize>(_: [std::mem::MaybeUninit<T>; N]) {} | ||
|
||
pub struct Blubb<T>(*const T); | ||
|
||
pub const fn g<T, const N: usize>(_: [Blubb<T>; N]) {} | ||
|
||
pub struct Blorb<const N: usize>([String; N]); | ||
|
||
pub const fn h(_: Blorb<0>) {} | ||
|
||
pub struct Wrap(Blorb<0>); | ||
|
||
pub const fn i(_: Wrap) {} | ||
|
||
fn main() {} |