-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Tracking Issue for RFC 3591: use
ing a function from a trait
#134691
Labels
B-RFC-approved
Blocker: Approved by a merged RFC but not yet implemented.
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
S-tracking-unimplemented
Status: The feature has not been implemented.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Comments
Might be worth noting that there is an orthogonal implementation of using a trait function through the unstable #![feature(fn_delegation)]
reuse Default::default;
fn main() {
let s: i32 = default();
dbg!(s);
} Although my understanding is that this is just some kind of experiment, and will not be stabilized? |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 16, 2025
…sociated_functions, r=oli-obk Implement `use` associated items of traits This PR implements rust-lang#134691.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 16, 2025
…sociated_functions, r=oli-obk Implement `use` associated items of traits This PR implements rust-lang#134691.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 17, 2025
Rollup merge of rust-lang#134754 - frank-king:feature/import_trait_associated_functions, r=oli-obk Implement `use` associated items of traits This PR implements rust-lang#134691.
m-ou-se
added a commit
to m-ou-se/rust
that referenced
this issue
Apr 3, 2025
unstable book: document import_trait_associated_functions Documents rust-lang#134691 which was implemented in rust-lang#134754
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Apr 3, 2025
unstable book: document import_trait_associated_functions Documents rust-lang#134691 which was implemented in rust-lang#134754
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 3, 2025
Rollup merge of rust-lang#139149 - mejrs:itaf, r=ehuss unstable book: document import_trait_associated_functions Documents rust-lang#134691 which was implemented in rust-lang#134754
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
B-RFC-approved
Blocker: Approved by a merged RFC but not yet implemented.
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
S-tracking-unimplemented
Status: The feature has not been implemented.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
This is a tracking issue for the RFC "Add support for
use Trait::func
" (rust-lang/rfcs#3591).The feature gate for the issue is
#![feature(import_trait_associated_functions)]
.About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
Steps
use
associated items of traits #134754Unresolved Questions
Implementation history
The text was updated successfully, but these errors were encountered: