]> git.lizzy.rs Git - rust.git/blob - src/test/ui/symbol-names/verbose.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / symbol-names / verbose.rs
1 // Regression test for issue #57596, where -Zverbose flag unintentionally
2 // affected produced symbols making it impossible to link between crates
3 // with a different value of the flag (for symbols involving generic
4 // arguments equal to defaults of their respective parameters).
5 //
6 // build-pass
7 // compile-flags: -Zverbose
8
9 pub fn error(msg: String) -> Box<dyn std::error::Error> {
10   msg.into()
11 }
12
13 fn main() {
14   error(String::new());
15 }