rust/src/test/ui/impl-trait/universal_wrong_bounds.stderr

31 lines
1 KiB
Plaintext
Raw Normal View History

error[E0425]: cannot find function `wants_clone` in this scope
2018-03-22 00:44:21 +00:00
--> $DIR/universal_wrong_bounds.rs:16:5
|
2018-02-23 00:42:32 +00:00
LL | wants_clone(f); //~ ERROR cannot find
| ^^^^^^^^^^^ did you mean `wants_cone`?
error[E0405]: cannot find trait `Debug` in this scope
2018-03-22 00:44:21 +00:00
--> $DIR/universal_wrong_bounds.rs:19:24
|
2018-02-23 00:42:32 +00:00
LL | fn wants_debug(g: impl Debug) { } //~ ERROR cannot find
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
2018-02-24 23:01:39 +00:00
LL | use std::fmt::Debug;
|
error[E0405]: cannot find trait `Debug` in this scope
2018-03-22 00:44:21 +00:00
--> $DIR/universal_wrong_bounds.rs:20:26
|
2018-02-23 00:42:32 +00:00
LL | fn wants_display(g: impl Debug) { } //~ ERROR cannot find
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
2018-02-24 23:01:39 +00:00
LL | use std::fmt::Debug;
|
2018-03-15 15:13:47 +00:00
error: aborting due to 3 previous errors
2018-03-15 15:13:47 +00:00
Some errors occurred: E0405, E0425.
For more information about an error, try `rustc --explain E0405`.