-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
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
builtin bounds specified on impls are not checked #15860
Labels
Milestone
Comments
Nominating for 1.0, P-backcompat-lang. |
Assigning 1.0, P-backcompat-lang |
pcwalton
added a commit
to pcwalton/rust
that referenced
this issue
Jul 25, 2014
method calls are involved. This breaks code like: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = box 3i; // note no `Copy` bound take_param(&x); } Change this code to not contain a type error. For example: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = 3i; // satisfies `Copy` bound take_param(&x); } Closes rust-lang#15860. [breaking-change]
bors
added a commit
that referenced
this issue
Jul 25, 2014
…uonw,pnkfelix method calls are involved. This breaks code like: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = box 3i; // note no `Copy` bound take_param(&x); } Change this code to not contain a type error. For example: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = 3i; // satisfies `Copy` bound take_param(&x); } Closes #15860. [breaking-change] r? @alexcrichton
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Nov 16, 2023
…Kalbasi Truncate closure capture place for raw pointer fix rust-lang/rust-analyzer#15670 (comment)
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Example:
This should be fixed by code in #5527.
The text was updated successfully, but these errors were encountered: