rust/tests/ui/issues/issue-34751.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
251 B
Rust
Raw Normal View History

// 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() {}