]> git.lizzy.rs Git - rust.git/blob - tests/ui/lang-items/issue-86238.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / lang-items / issue-86238.rs
1 // Regression test for the ICE described in issue #86238.
2
3 #![feature(lang_items)]
4 #![feature(no_core)]
5
6 #![no_core]
7 fn main() {
8     let one = || {};
9     one()
10     //~^ ERROR: failed to find an overloaded call trait for closure call
11     //~| HELP: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined
12 }
13 #[lang = "sized"]
14 trait Sized {}
15 #[lang = "copy"]
16 trait Copy {}