#![feature(collections)]
#![feature(collections_drain)]
#![feature(core)]
+#![feature(const_fn)]
#![feature(hash)]
#![feature(rand)]
#![feature(rustc_private)]
#![feature(box_syntax)]
#![feature(unboxed_closures)]
#![feature(core)]
+#![feature(const_fn)]
#![feature(test)]
#![feature(rand)]
#![feature(unicode)]
#![feature(staged_api)]
#![feature(box_syntax)]
#![feature(core)]
+#![feature(const_fn)]
#![feature(std_misc)]
use std::boxed;
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(collections)]
+#![feature(const_fn)]
#![feature(core)]
#![feature(duration)]
#![feature(duration_span)]
#![feature(box_syntax)]
#![feature(collections)]
#![feature(core)]
+#![feature(const_fn)]
#![feature(libc)]
#![feature(quote)]
#![feature(rustc_diagnostic_macros)]
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#![feature(const_fn)]
+
use std::sync::atomic;
pub const C1: usize = 1;
//
// (Compare against compile-fail/dropck_vec_cycle_checked.rs)
+#![feature(const_fn)]
+
use std::cell::Cell;
use id::Id;
// for the error message we see here.)
#![allow(unstable)]
+#![feature(const_fn)]
extern crate arena;
//
// (Compare against compile-fail/dropck_vec_cycle_checked.rs)
+#![feature(const_fn)]
+
use std::cell::Cell;
use id::Id;
//
// (Compare against compile-fail/dropck_arr_cycle_checked.rs)
+#![feature(const_fn)]
+
use std::cell::Cell;
use id::Id;
// RFC 736 (and Issue 21407): functional struct update should respect privacy.
+#![feature(const_fn)]
+
// The `foo` module attempts to maintains an invariant that each `S`
// has a unique `u64` id.
use self::foo::S;
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#![feature(const_fn)]
+
use std::cell::UnsafeCell;
const A: UnsafeCell<usize> = UnsafeCell::new(1);
// except according to those terms.
#![feature(box_syntax)]
+#![feature(const_fn)]
use std::cell::RefCell;
// conditions above to be satisfied, meaning that if the dropck is
// sound, it should reject this code.
+#![feature(const_fn)]
+
use std::cell::Cell;
use id::Id;
#![allow(dead_code, unused_variables)]
#![omit_gdb_pretty_printer_section]
#![feature(std_misc, core)]
+#![feature(const_fn)]
// This test makes sure that the compiler doesn't crash when trying to assign
// debug locations to const-expressions.
// except according to those terms.
#![allow(dead_code)]
+#![feature(const_fn)]
// check dtor calling order when casting enums.
// `Item` originates in a where-clause, not the declaration of
// `T`. Issue #20300.
+#![feature(const_fn)]
+
use std::marker::{PhantomData};
use std::sync::atomic::{AtomicUsize};
use std::sync::atomic::Ordering::SeqCst;
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
// destructor.
+#![feature(const_fn)]
+
use std::thread;
use std::sync::atomic::{AtomicUsize, Ordering};
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
// destructor.
+#![feature(const_fn)]
+
use std::thread;
use std::sync::atomic::{AtomicUsize, Ordering};
#![feature(const_fn)]
-struct Foo { val: u32 }
+struct Foo { value: u32 }
impl Foo {
const fn new() -> Foo {
// pretty-expanded FIXME #23616
#![feature(core)]
+#![feature(const_fn)]
+
use std::marker;
use std::cell::UnsafeCell;
#![feature(core)]
+#![feature(const_fn)]
extern crate issue_17718 as other;
// created via FRU and control-flow breaks in the middle of
// construction.
+#![feature(const_fn)]
use std::sync::atomic::{Ordering, AtomicUsize};
// the contents implement Drop and we hit a panic in the middle of
// construction.
+#![feature(const_fn)]
use std::thread;
use std::sync::atomic::{AtomicUsize, Ordering};
// Checks that functional-record-update order-of-eval is as expected
// even when no Drop-implementations are involved.
+#![feature(const_fn)]
use std::sync::atomic::{Ordering, AtomicUsize};
// Checks that struct-literal expression order-of-eval is as expected
// even when no Drop-implementations are involved.
+#![feature(const_fn)]
use std::sync::atomic::{Ordering, AtomicUsize};
#![feature(rand, core)]
+#![feature(const_fn)]
use std::sync::atomic::{AtomicUsize, Ordering};
use std::__rand::{thread_rng, Rng};