diff options
Diffstat (limited to 'tests/ui/issues/issue-34780.rs')
-rw-r--r-- | tests/ui/issues/issue-34780.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-34780.rs b/tests/ui/issues/issue-34780.rs new file mode 100644 index 000000000..fbedad35b --- /dev/null +++ b/tests/ui/issues/issue-34780.rs @@ -0,0 +1,11 @@ +// check-pass +#![allow(stable_features)] +#![feature(associated_consts)] + +use std::marker::PhantomData; + +trait Tr<'a> { + const C: PhantomData<&'a u8> = PhantomData::<&'a u8>; +} + +fn main() {} |