Skip to content

Commit

Permalink
Add ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed Aug 16, 2021
1 parent ee85704 commit 85abdf0
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 85abdf0

Please sign in to comment.