rust/tests/ui/traits/const-traits/issue-102156.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

16 lines
277 B
Rust

#![feature(allocator_api)]
#![feature(const_trait_impl)]
use core::convert::{From, TryFrom};
//~^ ERROR
//~| ERROR
use std::pin::Pin;
use std::alloc::Allocator;
impl<T: ?Sized, A: Allocator> const From<Box<T, A>> for Pin<Box<T, A>>
where
A: 'static,
{}
pub fn main() {}