Skip to content

Commit

Permalink
*dust dust*
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Oct 20, 2021
1 parent c75d8cb commit e7a9e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/const-generics/defaults/trait_objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn bar<const N: u8>(arg: &dyn Traitor<N>) -> u8 {
fn main() {
assert_eq!(foo(&10_u32), 12);
assert_eq!(foo(&3_u64), 3);

assert_eq!(bar(&true), 2);
assert_eq!(bar(&1_u8), 1);
}
2 changes: 1 addition & 1 deletion src/test/ui/const-generics/defaults/wfness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct WhereClause<const N: u8 = 2> where (): Trait<N>;
trait Traitor<T, const N: u8> {}
struct WhereClauseTooGeneric<T = u32, const N: u8 = 2>(T) where (): Traitor<T, N>;

// no error on struct def
// no error on struct def
struct DependentDefaultWfness<const N: u8 = 1, T = WhereClause<N>>(T);
fn foo() -> DependentDefaultWfness {
//~^ error: the trait bound `(): Trait<1_u8>` is not satisfied
Expand Down

0 comments on commit e7a9e82

Please sign in to comment.