mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
update comment
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// Check that we test WF conditions for fn arguments. Because the
|
||||
// current code is so goofy, this is only a warning for now.
|
||||
// Check that we test WF conditions for fn arguments.
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
error[E0277]: the trait bound `Self: Eq` is not satisfied
|
||||
--> $DIR/wf-trait-default-fn-ret.rs:11:22
|
||||
--> $DIR/wf-trait-default-fn-ret.rs:10:22
|
||||
|
|
||||
LL | fn bar(&self) -> Bar<Self> {
|
||||
| ^^^^^^^^^ the trait `Eq` is not implemented for `Self`
|
||||
|
|
||||
note: required by a bound in `Bar`
|
||||
--> $DIR/wf-trait-default-fn-ret.rs:8:14
|
||||
--> $DIR/wf-trait-default-fn-ret.rs:7:14
|
||||
|
|
||||
LL | struct Bar<T:Eq+?Sized> { value: Box<T> }
|
||||
| ^^ required by this bound in `Bar`
|
||||
|
||||
Reference in New Issue
Block a user