rust/src/test/ui/issues/issue-24363.stderr

19 lines
542 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2018-12-25 08:56:47 -07:00
--> $DIR/issue-24363.rs:2:7
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | 1.create_a_type_error[
2018-07-15 14:11:54 -07:00
| ^^^^^^^^^^^^^^^^^^^
error[E0369]: binary operation `+` cannot be applied to type `()`
2018-12-25 08:56:47 -07:00
--> $DIR/issue-24363.rs:3:9
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | ()+()
2018-07-15 14:11:54 -07:00
| ^^^^^
|
= note: an implementation of `std::ops::Add` might be missing for `()`
error: aborting due to 2 previous errors
Some errors occurred: E0369, E0610.
For more information about an error, try `rustc --explain E0369`.