You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal compiler error passing an iterator as a parameter. #10467
While practicing my Rust skills by writing a version of GNU cat, I ran into an error that told me to report the results here. The file and the error are included in this gist:
The error only occurs when I try to have cat_files accept an Iterator. If I refactor the code so that it accepts a borrowed pointer to an owned vector of owned strings, then it works.
What version of the compiler were you running this with? If you updated to the most recent version of master, I think that you'll probably see a better error (not certain, just a guess from looking at the program)
Activity
alexcrichton commentedon Nov 13, 2013
What version of the compiler were you running this with? If you updated to the most recent version of master, I think that you'll probably see a better error (not certain, just a guess from looking at the program)
huonw commentedon Nov 13, 2013
With
rustc 0.9-pre (825b127 2013-11-12 18:56:13 -0800), I seewhen running on the reduced
It's the same error message as #10391, but appears to be a possibly different cause.
nikomatsakis commentedon Nov 14, 2013
cc me. I've been negligent and not looked at #10391 yet, I'll see if I can peel off some time today to look at both of these.
nikomatsakis commentedon Nov 15, 2013
This is in fact a dup of #5121
nikomatsakis commentedon Nov 15, 2013
In particular we don't (yet) support a function like:
because
'selfappears within the trait bound forT.Auto merge of rust-lang#10467 - blyxyas:underscore_typed, r=Jarcho
Merge rust-lang#10467