Add inline const to INCOMPLETE_FEATURES

This commit is contained in:
Santiago Pastorino 2020-10-16 18:15:57 -03:00
parent 547e5eb498
commit 03321b8cca
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF
5 changed files with 5 additions and 0 deletions

View File

@ -621,6 +621,7 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
sym::const_trait_bound_opt_out,
sym::lazy_normalization_consts,
sym::specialization,
sym::inline_const,
];
/// Some features are not allowed to be used together at the same time, if

View File

@ -1,5 +1,6 @@
// build-pass
#![allow(incomplete_features)]
#![feature(inline_const)]
use std::cell::Cell;

View File

@ -1,5 +1,6 @@
// run-pass
#![allow(incomplete_features)]
#![feature(inline_const)]
fn foo() -> i32 {
const {

View File

@ -1,5 +1,6 @@
// run-pass
#![allow(incomplete_features)]
#![feature(inline_const)]
const fn bar() -> i32 {

View File

@ -1,5 +1,6 @@
// run-pass
#![allow(incomplete_features)]
#![feature(inline_const)]
const MMIO_BIT1: u8 = 4;
const MMIO_BIT2: u8 = 5;