completion uwu

This commit is contained in:
Ellen 2021-05-13 11:37:25 +01:00
parent 72d07257ed
commit 7e952ec039
9 changed files with 0 additions and 9 deletions

View file

@ -1,6 +1,5 @@
// run-pass
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
struct Foo<const N: usize, const M: usize = N>([u8; N], [u8; M]);
fn foo<const N: usize>() -> Foo<N> {

View file

@ -1,6 +1,5 @@
// run-pass
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
struct Foo<const N: usize, T = [u8; N]>(T);
impl<const N: usize> Foo<N> {

View file

@ -1,5 +1,4 @@
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
struct Foo<const N: u8 = { 255 + 1 }>;
//~^ ERROR evaluation of constant value failed
fn main() {}

View file

@ -4,7 +4,6 @@
#![crate_type = "lib"]
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
trait Foo<const KIND: bool = true> {}

View file

@ -6,7 +6,6 @@
#![crate_type = "lib"]
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]

View file

@ -3,7 +3,6 @@
// run-pass
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
#[repr(C)]
pub struct Loaf<T: Sized, const N: usize = 1> {

View file

@ -1,6 +1,5 @@
#![crate_type = "lib"]
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
fn foo<const SIZE: usize = 5usize>() {}
//~^ ERROR defaults for const parameters are

View file

@ -1,5 +1,4 @@
// check-pass
#![allow(incomplete_features)]
#![feature(const_generics_defaults)]
#[derive(Clone, PartialEq, Debug)]