Skip to content

Commit

Permalink
trairing new line
Browse files Browse the repository at this point in the history
  • Loading branch information
OdenShirataki committed Feb 11, 2024
1 parent 7ac58f3 commit a9f72fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/ui/traits/issue-120878.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fn main() {
struct StructA<A, B =A> {
struct StructA<A, B = A> {
_marker: std::marker::PhantomData<fn() -> (A, B)>,
}

struct StructB {
a: StructA<isize, [u8]>,
}
}
}
4 changes: 2 additions & 2 deletions tests/ui/traits/issue-120878.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LL | struct StructA<A, B =A> {
| ^^^^ required by the implicit `Sized` requirement on this type parameter in `StructA`
help: consider relaxing the implicit `Sized` restriction
|
LL | struct StructA<A, B: ?Sized =A> {
LL | struct StructA<A, B: ?Sized = A> {
| ++++++++

For more information about this error, try `rustc --explain E0277`.
For more information about this error, try `rustc --explain E0277`.

0 comments on commit a9f72fe

Please sign in to comment.