Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overflow evaluating the requirement impl ListString: std::marker::Freeze #44349

Closed
NilSet opened this issue Sep 5, 2017 · 1 comment
Closed
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@NilSet
Copy link
Contributor

NilSet commented Sep 5, 2017

This code fails to compile in an interesting and unhelpful way, taking about internal traits and giving no line numbers.

https://play.rust-lang.org/?gist=a6eb10c5a6350a9c6fbf8e4af87d98d2&version=nightly

@alexcrichton alexcrichton added A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 7, 2017
@kennytm
Copy link
Member

kennytm commented Nov 16, 2017

The current error doesn't mention std::marker::Freeze anymore.

rustc version: 1.23.0-nightly (2017-11-15 fa26421f56e385b1055e65b29a55b36bb2eae23e).

   Compiling playground v0.0.1 (file:///playground)
error[E0275]: overflow evaluating the requirement `<<<<<<T as ListString>::Tail as ListString>::Tail as ListString>::Tail as ListString>::Tail as ListString>::Tail as ListString>::Tail: ListString`
  |
  = help: consider adding a `#![recursion_limit="24"]` attribute to your crate
  = note: required because it appears within the type `Cons<impl ListString>`
  = note: required because it appears within the type `impl ListString`
  = note: required because it appears within the type `Cons<impl ListString>`
  = note: required because it appears within the type `impl ListString`
  = note: required because it appears within the type `Cons<impl ListString>`
  = note: required because it appears within the type `impl ListString`
  = note: required because it appears within the type `Cons<impl ListString>`
  = note: required because it appears within the type `impl ListString`
  = note: required because it appears within the type `Cons<impl ListString>`
  = note: required because it appears within the type `impl ListString`
  = note: required because it appears within the type `Cons<impl ListString>`
  = note: required because it appears within the type `impl ListString`

error: aborting due to previous error

error: Could not compile `playground`.

To learn more, run the command again with --verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants