2019-07-15 00:28:17 +00:00
|
|
|
error[E0404]: expected trait, found derive macro `Debug`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/universal_wrong_bounds.rs:9:24
|
2017-11-15 01:07:53 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn wants_debug(g: impl Debug) { }
|
2019-07-15 00:28:17 +00:00
|
|
|
| ^^^^^ not a trait
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-05-04 22:12:06 +00:00
|
|
|
help: consider importing this trait instead
|
2017-11-15 01:07:53 +00:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::fmt::Debug;
|
2017-11-15 01:07:53 +00:00
|
|
|
|
|
|
|
|
|
2019-07-15 00:28:17 +00:00
|
|
|
error[E0404]: expected trait, found derive macro `Debug`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/universal_wrong_bounds.rs:10:26
|
2017-11-15 01:07:53 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn wants_display(g: impl Debug) { }
|
2019-07-15 00:28:17 +00:00
|
|
|
| ^^^^^ not a trait
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-05-04 22:12:06 +00:00
|
|
|
help: consider importing this trait instead
|
2017-11-15 01:07:53 +00:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::fmt::Debug;
|
2017-11-15 01:07:53 +00:00
|
|
|
|
|
|
|
|
|
2018-05-21 07:56:52 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2017-11-15 01:07:53 +00:00
|
|
|
|
2019-07-15 00:28:17 +00:00
|
|
|
For more information about this error, try `rustc --explain E0404`.
|