mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
15 lines
208 B
Rust
15 lines
208 B
Rust
|
#![crate_type = "lib"]
|
||
|
|
||
|
pub trait U/*: ?Sized */ {
|
||
|
fn modified(self) -> Self
|
||
|
where
|
||
|
Self: Sized
|
||
|
{
|
||
|
self
|
||
|
}
|
||
|
|
||
|
fn touch(&self)/* where Self: ?Sized */{}
|
||
|
}
|
||
|
|
||
|
pub trait S: Sized {}
|