summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lang-items/issue-86238.rs
blob: 509f94f3834a577c04464cfe2e7b59ee7c5b72ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Regression test for the ICE described in issue #86238.

#![feature(lang_items)]
#![feature(no_core)]

#![no_core]
fn main() {
    let one = || {};
    one()
    //~^ ERROR: failed to find an overloaded call trait for closure call
    //~| HELP: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined
}
#[lang = "sized"]
trait Sized {}
#[lang = "copy"]
trait Copy {}