rust/tests/ui/impl-trait/fallback_inference.rs

8 lines
137 B
Rust
Raw Normal View History

use std::marker::PhantomData;
fn weird() -> PhantomData<impl Sized> {
2022-02-14 06:25:26 -06:00
PhantomData //~ ERROR type annotations needed
}
fn main() {}