Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
traits
/
trait-bounds-not-on-struct.rs
blob: c6e93e7552502dd7859697fc537a97df089cac31 [
file
] [
log
] [
blame
]
#![
allow
(
bare_trait_objects
)]
struct
Foo
;
fn
foo
(
_x
:
Box
<
Foo
+
Send
>)
{
}
//~ ERROR expected trait, found struct `Foo`
type
A
<
T
>
=
Box
<
dyn
Vec
<
T
>>;
//~ ERROR expected trait, found struct `Vec`
fn
main
()
{
}