rust/tests/rustdoc/inline_cross/auxiliary/impl-sized.rs
2023-07-26 02:11:35 +02:00

22 lines
392 B
Rust

use std::fmt::Debug;
pub fn sized(x: impl Sized) -> impl Sized {
x
}
pub fn sized_outlives<'a>(x: impl Sized + 'a) -> impl Sized + 'a {
x
}
pub fn maybe_sized(x: &impl ?Sized) -> &impl ?Sized {
x
}
pub fn debug_maybe_sized(x: &(impl Debug + ?Sized)) -> &(impl Debug + ?Sized) {
x
}
pub fn maybe_sized_outlives<'t>(x: &(impl ?Sized + 't)) -> &(impl ?Sized + 't) {
x
}