mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
20 lines
271 B
Rust
20 lines
271 B
Rust
//@ known-bug: #105299
|
|
|
|
pub trait Foo: Clone {}
|
|
|
|
pub struct Bar<'a, T: Clone> {
|
|
pub cow: std::borrow::Cow<'a, [T]>,
|
|
|
|
pub THIS_CAUSES_ICE: (), // #1
|
|
}
|
|
|
|
impl<T> Bar<'_, T>
|
|
where
|
|
T: Clone,
|
|
[T]: Foo,
|
|
{
|
|
pub fn MOVES_SELF(self) {} // #2
|
|
}
|
|
|
|
pub fn main() {}
|