rust/tests/ui/type-alias-impl-trait/bound_reduction.rs

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

20 lines
330 B
Rust
Raw Normal View History

//@ build-pass (FIXME(62277): could be check-pass?)
2018-07-17 13:11:00 +00:00
#![allow(warnings)]
#![feature(type_alias_impl_trait)]
2018-07-17 13:11:00 +00:00
fn main() {
}
2019-07-29 23:11:58 +00:00
type Foo<V> = impl std::fmt::Debug;
2018-07-17 13:11:00 +00:00
trait Trait<U> {}
fn foo_desugared<T: Trait<[u32; {
#[no_mangle]
static FOO: usize = 42;
3
}]>>(_: T) -> Foo<T> {
(42, std::marker::PhantomData::<T>)
}