Skip to content

Commit 5dc43d2

Browse files
committed
Feature gate in test.
1 parent 95ffda1 commit 5dc43d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/compile-fail/object-safety-associated-consts.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Check that we correctly prevent users from making trait objects
1212
// from traits with associated consts.
1313

14+
#![feature(associated_consts)]
15+
1416
trait Bar {
1517
const X: usize;
1618
}

0 commit comments

Comments
 (0)