summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-34751.rs
blob: 6309c0a0257238a1f213218e878d53a585b9c18a (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass
#![allow(dead_code)]
// #34751 ICE: 'rustc' panicked at 'assertion failed: !substs.has_regions_escaping_depth(0)'

#[allow(dead_code)]

use std::marker::PhantomData;

fn f<'a>(PhantomData::<&'a u8>: PhantomData<&'a u8>) {}

fn main() {}