summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-fn-ptr-for-fn-item-in-fn-ret.rs
blob: d2a79c3869418369482c59790875c4b84e0a68c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-rustfix

#![allow(unused)]

struct Wrapper<T>(T);

fn bar() -> _ { Wrapper(foo) }
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types

fn foo() {}

fn main() {}