]> git.lizzy.rs Git - rust.git/blob - src/liballoc/tests/fmt.rs
rustc_span: return an impl Iterator instead of a Vec from macro_backtrace.
[rust.git] / src / liballoc / tests / fmt.rs
1 use std::fmt;
2
3 #[test]
4 fn test_format() {
5     let s = fmt::format(format_args!("Hello, {}!", "world"));
6     assert_eq!(s, "Hello, world!");
7 }