Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
typeck
/
typeck-default-trait-impl-constituent-types-2.rs
blob: 6c170fb5bae7d6d1a2907e771ae4a32fd92bcfc9 [
file
] [
log
] [
blame
]
#![
feature
(
optin_builtin_traits
)]
auto
trait
MyTrait
{}
struct
MyS
;
struct
MyS2
;
impl
!
MyTrait
for
MyS2
{}
fn
is_mytrait
<
T
:
MyTrait
>()
{}
fn
main
()
{
is_mytrait
::<
MyS
>();
is_mytrait
::<(
MyS2
,
MyS
)>();
//~^ ERROR `MyS2: MyTrait` is not satisfied
}