rust/tests/rustdoc/inline_cross/auxiliary/impl-sized.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
392 B
Rust
Raw Normal View History

2023-07-25 19:11:35 -05:00
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
}