]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-eval/issue-53157.rs
Rollup merge of #107146 - compiler-errors:unsizing-params, r=cjgillot
[rust.git] / tests / ui / consts / const-eval / issue-53157.rs
1 // check-pass
2
3 macro_rules! m {
4     () => {{
5         fn f(_: impl Sized) {}
6         f
7     }}
8 }
9
10 fn main() {
11     fn f() -> impl Sized {};
12     m!()(f());
13 }