Guest User

Untitled

a guest
Jun 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. enum SomeEnum<'a, T> where T: 'a + Display { Something(&'a T), }
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0405]: cannot find trait `Display` in this scope
  11. --> src/main.rs:5:44
  12. |
  13. 5 | enum SomeEnum<'a, T> where T: 'a + Display { Something(&'a T), }
  14. | ^^^^^^^ not found in this scope
  15. help: possible candidate is found in another module, you can import it into scope
  16. |
  17. 3 | use std::fmt::Display;
  18. |
  19.  
  20. error: aborting due to previous error
  21.  
  22. For more information about this error, try `rustc --explain E0405`.
  23. error: Could not compile `playground`.
  24.  
  25. To learn more, run the command again with --verbose.
  26.  
  27. */
  28.  
  29. /* ~~~~=== stdout ===~~~~
  30.  
  31. */
Add Comment
Please, Sign In to add comment