mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
21 lines
771 B
Plaintext
21 lines
771 B
Plaintext
error[E0277]: the trait bound `dyn NotObject: NotObject` is not satisfied
|
|
--> $DIR/deny-builtin-object-impl.rs:18:23
|
|
|
|
|
LL | test_not_object::<dyn NotObject>();
|
|
| ^^^^^^^^^^^^^ the trait `NotObject` is not implemented for `dyn NotObject`
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
--> $DIR/deny-builtin-object-impl.rs:10:1
|
|
|
|
|
LL | trait NotObject {}
|
|
| ^^^^^^^^^^^^^^^
|
|
note: required by a bound in `test_not_object`
|
|
--> $DIR/deny-builtin-object-impl.rs:14:23
|
|
|
|
|
LL | fn test_not_object<T: NotObject + ?Sized>() {}
|
|
| ^^^^^^^^^ required by this bound in `test_not_object`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|