Skip to content

Commit fa6b95f

Browse files
lcnrJJ_EMPTY_STRING
authored and
JJ_EMPTY_STRING
committed
update comment
1 parent 8c078fd commit fa6b95f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: tests/ui/wf/wf-trait-default-fn-ret.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Check that we test WF conditions for fn arguments. Because the
2-
// current code is so goofy, this is only a warning for now.
1+
// Check that we test WF conditions for fn arguments.
32

43
#![feature(rustc_attrs)]
54
#![allow(dead_code)]

Diff for: tests/ui/wf/wf-trait-default-fn-ret.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0277]: the trait bound `Self: Eq` is not satisfied
2-
--> $DIR/wf-trait-default-fn-ret.rs:11:22
2+
--> $DIR/wf-trait-default-fn-ret.rs:10:22
33
|
44
LL | fn bar(&self) -> Bar<Self> {
55
| ^^^^^^^^^ the trait `Eq` is not implemented for `Self`
66
|
77
note: required by a bound in `Bar`
8-
--> $DIR/wf-trait-default-fn-ret.rs:8:14
8+
--> $DIR/wf-trait-default-fn-ret.rs:7:14
99
|
1010
LL | struct Bar<T:Eq+?Sized> { value: Box<T> }
1111
| ^^ required by this bound in `Bar`

0 commit comments

Comments
 (0)