We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Code:
trait Matchable<'a> { fn new_matcher(s: Self, st: &'a str) -> Matcher<'a, Self>; } struct Matcher<'a, T>(T, &'a str); struct A; impl<'a> Matchable<'a> for A { fn new_matcher(s: A, st: &'a str) -> Matcher<'a, A> { Matcher(s, st) } } fn main() { fn generic<'a, T: Matchable<'a>>(t: T, s: &'a str) { } let s = "abc"; generic(A, s); }
generic_str_matching.rs:19:5: 19:12 error: internal compiler error: Cannot relate bound region: ReInfer(1) <= ReLateBound(69, BrNamed(syntax::ast::DefId{crate: 0u32, node: 84u32}, a)) This message reflects a bug in the Rust compiler. We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report generic_str_matching.rs:19 generic(A, s); ^~~~~~~
The text was updated successfully, but these errors were encountered:
Closing as a dupe of #5121.
Sorry, something went wrong.
'static
Add suggestions for std_instead_of_core
e0014af
Fixes rust-lang#11446
Auto merge of rust-lang#11456 - tom-anders:std_instead_of_core_sugges…
27165ac
…tion, r=Manishearth Add suggestions for std_instead_of_core ``` changelog: [`std_instead_of_core`]: add suggestions ``` Fixes rust-lang#11446
No branches or pull requests
Code:
The text was updated successfully, but these errors were encountered: