]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lang-items/issue-86238.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / 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 {}