mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 04:26:48 +00:00
update tests/ui
This commit is contained in:
parent
726598ed9a
commit
30f458ed1e
@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `Foo<N>`
|
||||
LL | let foo = Foo::foo();
|
||||
| ^^^
|
||||
|
|
||||
help: consider giving `foo` an explicit type, where the the value of const parameter `N` is specified
|
||||
help: consider giving `foo` an explicit type, where the value of const parameter `N` is specified
|
||||
|
|
||||
LL | let foo: Foo<N> = Foo::foo();
|
||||
| ++++++++
|
||||
|
@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `[usize; N]`
|
||||
LL | let _ = foo("foo");
|
||||
| ^
|
||||
|
|
||||
help: consider giving this pattern a type, where the the value of const parameter `N` is specified
|
||||
help: consider giving this pattern a type, where the value of const parameter `N` is specified
|
||||
|
|
||||
LL | let _: [usize; N] = foo("foo");
|
||||
| ++++++++++++
|
||||
|
@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `SmallCString<N>`
|
||||
LL | SmallCString::try_from(p).map(|cstr| cstr);
|
||||
| ^^^^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the the value of const parameter `N` is specified
|
||||
help: consider giving this closure parameter an explicit type, where the value of const parameter `N` is specified
|
||||
|
|
||||
LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
|
||||
| +++++++++++++++++
|
||||
|
Loading…
Reference in New Issue
Block a user