Skip to content

Commit f886489

Browse files
committed
Fix bitflags_custom_bits.stderr & bitflags_trait_custom.stderr
1 parent 39bd761 commit f886489

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

tests/compile-fail/bitflags_custom_bits.stderr

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ error[E0277]: the trait bound `MyInt: bitflags::traits::Primitive` is not satisf
22
--> tests/compile-fail/bitflags_custom_bits.rs:133:22
33
|
44
133 | struct Flags128: MyInt {
5-
| ^^^^^ the trait `bitflags::traits::Primitive` is not implemented for `MyInt`
5+
| ^^^^^ unsatisfied trait bound
66
|
7+
help: the trait `bitflags::traits::Primitive` is not implemented for `MyInt`
8+
--> tests/compile-fail/bitflags_custom_bits.rs:27:1
9+
|
10+
27 | struct MyInt(u8);
11+
| ^^^^^^^^^^^^
712
= help: the following other types implement trait `bitflags::traits::Primitive`:
813
i128
914
i16

tests/compile-fail/bitflags_trait_custom.stderr

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ error[E0277]: the trait bound `BootlegFlags: Flags` is not satisfied
3131
--> tests/compile-fail/bitflags_trait_custom.rs:5:19
3232
|
3333
5 | impl BitFlags for BootlegFlags {
34-
| ^^^^^^^^^^^^ the trait `Flags` is not implemented for `BootlegFlags`
34+
| ^^^^^^^^^^^^ unsatisfied trait bound
3535
|
36+
help: the trait `Flags` is not implemented for `BootlegFlags`
37+
--> tests/compile-fail/bitflags_trait_custom.rs:3:1
38+
|
39+
3 | pub struct BootlegFlags(u32);
40+
| ^^^^^^^^^^^^^^^^^^^^^^^
3641
note: required by a bound in `BitFlags`
3742
--> src/traits.rs
3843
|

0 commit comments

Comments
 (0)