Better group RFC ui tests together
This commit is contained in:
parent
7452822843
commit
9d3482c403
543 changed files with 145 additions and 145 deletions
18
tests/ui/rfcs/rfc-2005-default-binding-mode/const.stderr
Normal file
18
tests/ui/rfcs/rfc-2005-default-binding-mode/const.stderr
Normal file
|
@ -0,0 +1,18 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/const.rs:14:9
|
||||
|
|
||||
LL | const FOO: Foo = Foo{bar: 5};
|
||||
| -------------- constant defined here
|
||||
...
|
||||
LL | match &f {
|
||||
| -- this expression has type `&Foo`
|
||||
LL | FOO => {},
|
||||
| ^^^
|
||||
| |
|
||||
| expected `&Foo`, found `Foo`
|
||||
| `FOO` is interpreted as a constant, not a new binding
|
||||
| help: introduce a new binding instead: `other_foo`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
Loading…
Add table
Add a link
Reference in a new issue