Change some tests to use the shorter comment style
This commit is contained in:
parent
701f6e51b2
commit
ae2293837e
5 changed files with 6 additions and 17 deletions
|
@ -47,6 +47,4 @@ fn transmute<'a,'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rustc_error]
|
#[rustc_error]
|
||||||
fn main() { }
|
fn main() { } //[ok,oneuse]~ ERROR fatal error triggered by #[rustc_error]
|
||||||
//[ok]~^ ERROR fatal error triggered by #[rustc_error]
|
|
||||||
//[oneuse]~^^ ERROR fatal error triggered by #[rustc_error]
|
|
||||||
|
|
|
@ -20,14 +20,8 @@
|
||||||
|
|
||||||
fn foo(x: Box<[i32]>) {
|
fn foo(x: Box<[i32]>) {
|
||||||
box *x;
|
box *x;
|
||||||
//[migrate]~^ ERROR E0161
|
//[migrate,nll,zflags,edition]~^ ERROR E0161
|
||||||
//[nll]~^^ ERROR E0161
|
//[migrateul,nllul,zflagsul,editionul]~^^ ERROR E0161
|
||||||
//[zflags]~^^^ ERROR E0161
|
|
||||||
//[edition]~^^^^ ERROR E0161
|
|
||||||
//[migrateul]~^^^^^ ERROR E0161
|
|
||||||
//[nllul]~^^^^^^ ERROR E0161
|
|
||||||
//[zflagsul]~^^^^^^^ ERROR E0161
|
|
||||||
//[editionul]~^^^^^^^^ ERROR E0161
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -11,8 +11,7 @@ struct Foo<T> {
|
||||||
impl<T> Foo<T>
|
impl<T> Foo<T>
|
||||||
where
|
where
|
||||||
T: WithRegion<'_>
|
T: WithRegion<'_>
|
||||||
//[rust2015]~^ ERROR `'_` cannot be used here
|
//[rust2015,rust2018]~^ ERROR `'_` cannot be used here
|
||||||
//[rust2018]~^^ ERROR `'_` cannot be used here
|
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -9,8 +9,7 @@ trait Foo { }
|
||||||
impl<T> Foo for Vec<T>
|
impl<T> Foo for Vec<T>
|
||||||
where
|
where
|
||||||
T: WithType<&u32>
|
T: WithType<&u32>
|
||||||
//[rust2015]~^ ERROR `&` without an explicit lifetime name cannot be used here
|
//[rust2015,rust2018]~^ ERROR `&` without an explicit lifetime name cannot be used here
|
||||||
//[rust2018]~^^ ERROR `&` without an explicit lifetime name cannot be used here
|
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -9,8 +9,7 @@ trait Foo { }
|
||||||
impl<T> Foo for Vec<T>
|
impl<T> Foo for Vec<T>
|
||||||
where
|
where
|
||||||
T: WithRegion<'_>
|
T: WithRegion<'_>
|
||||||
//[rust2015]~^ ERROR `'_` cannot be used here
|
//[rust2015,rust2018]~^ ERROR `'_` cannot be used here
|
||||||
//[rust2018]~^^ ERROR `'_` cannot be used here
|
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue