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

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

8 lines
137 B
Rust
Raw Normal View History

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