Description
Test Program:
// lib.rs
#![no_std]
pub fn foo() {
pub struct Writer;
write!(Writer, "");
}
Error message on nightly [9af1775 2019-09-02] and before:
error[E0599]: no method named `write_fmt` found for type `foo::Writer` in the current scope
--> src/lib.rs:5:5
|
4 | pub struct Writer;
| ------------------ method `write_fmt` not found for this
5 | write!(Writer, "");
| ^^^^^^^^^^^^^^^^^^^
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `write_fmt`, perhaps you need to implement it:
candidate #1: `core::fmt::Write`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
Error message since nightly [b9de4ef 2019-09-03]:
error: requires `owned_box` lang_item
error: aborting due to previous error
Diff Between the Nightlies: 9af1775...b9de4ef
Reported by @wgfm and @ambye85 in phil-opp/blog_os#405 (comment).
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsCategory: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Help is requested to fix this issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.