Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- trait AtLeastIterator: Iterator<Item=Self::Item> { type Item; const MIN_COUNT: usize; }
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0391]: cycle detected when computing the supertraits of `main::AtLeastIterator`
- --> src/main.rs:5:9
- |
- 5 | trait AtLeastIterator: Iterator<Item=Self::Item> { type Item; const MIN_COUNT: usize; }
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: ...which again requires computing the supertraits of `main::AtLeastIterator`, completing the cycle
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0391`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment