blob: d564b2c7e67bc941f937d17afcb111b3539212d4 [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
#[lang = "copy"]
trait Copy {}
mod clone {
#[lang = "clone"]
pub trait Clone {
fn clone(&self) -> Self;
}
impl Clone for i32 {
fn clone(&self) -> i32 {
*self
}
}
}
struct S {}
#[derive(Clone, Copy)]
// { dg-error {bounds not satisfied for S .Clone. is not satisfied .E0277.} "" { target *-*-* } .-1 }
struct S2 {
a: i32,
s: S,
}
fn main() -> i32 {
0
}