Add ui test

This commit is contained in:
Deadbeef 2021-08-16 14:46:08 +00:00
parent ee85704c04
commit 85abdf0757
No known key found for this signature in database
GPG Key ID: 027DF9338862ADDD

View File

@ -0,0 +1,18 @@
// check-pass
// This was an ICE, because the compiler ensures the
// function to be const when performing const checking,
// but functions marked with the attribute are not const
// *and* subject to const checking.
#![feature(staged_api)]
#![feature(const_trait_impl)]
#![feature(const_fn_trait_bound)]
#![stable(since = "1", feature = "foo")]
trait Tr {
#[default_method_body_is_const]
fn a() {}
}
fn main() {}