fix formatting + test syntax
This commit is contained in:
parent
70bfcc2518
commit
a3d32bbbbe
13 changed files with 1 additions and 13 deletions
|
@ -5,6 +5,5 @@
|
||||||
enum Foo<T> { Variant(T) }
|
enum Foo<T> { Variant(T) }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the enum name
|
//~| HELP place the generic parameter name after the enum name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
enum<T> Foo { Variant(T) }
|
enum<T> Foo { Variant(T) }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the enum name
|
//~| HELP place the generic parameter name after the enum name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
fn f<'a, B: 'a + std::ops::Add<Output = u32>>(_x: B) { }
|
fn f<'a, B: 'a + std::ops::Add<Output = u32>>(_x: B) { }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the fn name
|
//~| HELP place the generic parameter name after the fn name
|
||||||
//~| SUGGESTION f<'a, B: 'a + std::ops::Add<Output = u32>>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
fn<'a, B: 'a + std::ops::Add<Output = u32>> f(_x: B) { }
|
fn<'a, B: 'a + std::ops::Add<Output = u32>> f(_x: B) { }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the fn name
|
//~| HELP place the generic parameter name after the fn name
|
||||||
//~| SUGGESTION f<'a, B: 'a + std::ops::Add<Output = u32>>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
fn id<T>(x: T) -> T { x }
|
fn id<T>(x: T) -> T { x }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the fn name
|
//~| HELP place the generic parameter name after the fn name
|
||||||
//~| SUGGESTION id<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
fn<T> id(x: T) -> T { x }
|
fn<T> id(x: T) -> T { x }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the fn name
|
//~| HELP place the generic parameter name after the fn name
|
||||||
//~| SUGGESTION id<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
struct Foo<T> { x: T }
|
struct Foo<T> { x: T }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the struct name
|
//~| HELP place the generic parameter name after the struct name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
struct<T> Foo { x: T }
|
struct<T> Foo { x: T }
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the struct name
|
//~| HELP place the generic parameter name after the struct name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
trait Foo<T> {
|
trait Foo<T> {
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the trait name
|
//~| HELP place the generic parameter name after the trait name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
trait<T> Foo {
|
trait<T> Foo {
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the trait name
|
//~| HELP place the generic parameter name after the trait name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
type Foo<T> = T;
|
type Foo<T> = T;
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the type name
|
//~| HELP place the generic parameter name after the type name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,6 +5,5 @@
|
||||||
type<T> Foo = T;
|
type<T> Foo = T;
|
||||||
//~^ ERROR expected identifier, found `<`
|
//~^ ERROR expected identifier, found `<`
|
||||||
//~| HELP place the generic parameter name after the type name
|
//~| HELP place the generic parameter name after the type name
|
||||||
//~| SUGGESTION Foo<T>
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue