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