]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-81885.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / typeck / issue-81885.rs
1 const TEST4: fn() -> _ = 42;
2                   //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
3                   //~| ERROR the placeholder `_` is not allowed within types on item signatures for constant items
4
5 fn main() {
6     const TEST5: fn() -> _ = 42;
7                       //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
8                       //~| ERROR the placeholder `_` is not allowed within types on item signatures for constant items
9 }