This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-11-01 15:01:51 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
b6494a7bb4
rust
/
tests
/
ui
/
issues
/
issue-3109.rs
5 lines
74 B
Rust
Raw
Normal View
History
Unescape
Escape
Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 12:18:55 +00:00
// run-pass
check-fast fallout from removing export, r=burningtree
2013-02-02 03:43:17 +00:00
pub
fn
main
(
)
{
core: split into fmt::Show and fmt::String fmt::Show is for debugging, and can and should be implemented for all public types. This trait is used with `{:?}` syntax. There still exists #[derive(Show)]. fmt::String is for types that faithfully be represented as a String. Because of this, there is no way to derive fmt::String, all implementations must be purposeful. It is used by the default format syntax, `{}`. This will break most instances of `{}`, since that now requires the type to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the correct fix. Types that were being printed specifically for users should receive a fmt::String implementation to fix this. Part of #20013 [breaking-change]
2014-12-20 08:09:35 +00:00
println!
(
"
{:?}
"
,
(
"
hi there!
"
,
"
you
"
)
)
;
Test cases, some xfailed
2012-12-07 02:32:13 +00:00
}
Reference in New Issue
Copy Permalink