File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff 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    |
44133 |     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
Original file line number Diff line number Diff 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  |
33335 | 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+   | ^^^^^^^^^^^^^^^^^^^^^^^
3641note: required by a bound in `BitFlags`
3742 --> src/traits.rs
3843  |
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments