mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
15 lines
227 B
Rust
15 lines
227 B
Rust
//@ aux-build:not-object-safe.rs
|
|
|
|
extern crate not_object_safe;
|
|
|
|
pub trait B where
|
|
Self: not_object_safe::A,
|
|
{
|
|
fn f2(&self);
|
|
}
|
|
|
|
struct S(Box<dyn B>);
|
|
//~^ ERROR the trait `B` cannot be made into an object
|
|
|
|
fn main() {}
|