Skip to content

Commit 85abdf0

Browse files
committed
Add ui test
1 parent ee85704 commit 85abdf0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// check-pass
2+
3+
// This was an ICE, because the compiler ensures the
4+
// function to be const when performing const checking,
5+
// but functions marked with the attribute are not const
6+
// *and* subject to const checking.
7+
8+
#![feature(staged_api)]
9+
#![feature(const_trait_impl)]
10+
#![feature(const_fn_trait_bound)]
11+
#![stable(since = "1", feature = "foo")]
12+
13+
trait Tr {
14+
#[default_method_body_is_const]
15+
fn a() {}
16+
}
17+
18+
fn main() {}

0 commit comments

Comments
 (0)