2023-04-16 06:12:37 -05:00
|
|
|
/* FIXME(#110395)
|
2021-12-05 04:46:29 -06:00
|
|
|
#[test]
|
|
|
|
fn convert() {
|
|
|
|
const fn from(x: i32) -> i32 {
|
|
|
|
i32::from(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
const FOO: i32 = from(42);
|
|
|
|
assert_eq!(FOO, 42);
|
|
|
|
|
|
|
|
const fn into(x: Vec<String>) -> Vec<String> {
|
|
|
|
x.into()
|
|
|
|
}
|
|
|
|
|
|
|
|
const BAR: Vec<String> = into(Vec::new());
|
|
|
|
assert_eq!(BAR, Vec::<String>::new());
|
|
|
|
}
|
2023-04-16 06:12:37 -05:00
|
|
|
*/
|