]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lang-items/issue-86238.rs
Report an error if resolution of closure call functions failed
[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 {}