Skip to content

Commit

Permalink
Remove is_normalizable. Add sizedness_of to avoid layout_of que…
Browse files Browse the repository at this point in the history
…ry on type aliases.
  • Loading branch information
Jarcho committed Mar 24, 2024
1 parent 95c62ff commit 4ee0d79
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/ui/crashes/ice-10508.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Used to overflow in `is_normalizable`

use std::marker::PhantomData;

struct Node<T: 'static> {
m: PhantomData<&'static T>,
}

struct Digit<T> {
elem: T,
}

enum FingerTree<T: 'static> {
Single(T),

Deep(Digit<T>, Box<FingerTree<Node<T>>>),
}

fn main() {}

0 comments on commit 4ee0d79

Please sign in to comment.