blob: b172b53807b6b5b53ab06c7163ae99a073ec498a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#![no_std]
//@ has "$.index[?(@.name=='FooDynIncompatible')]"
//@ is "$.index[?(@.name=='FooDynIncompatible')].inner.trait.is_dyn_compatible" false
pub trait FooDynIncompatible {
fn foo() -> Self;
}
//@ has "$.index[?(@.name=='BarDynIncompatible')]"
//@ is "$.index[?(@.name=='BarDynIncompatible')].inner.trait.is_dyn_compatible" false
pub trait BarDynIncompatible<T> {
fn foo(i: T);
}
//@ has "$.index[?(@.name=='FooDynCompatible')]"
//@ is "$.index[?(@.name=='FooDynCompatible')].inner.trait.is_dyn_compatible" true
pub trait FooDynCompatible {
fn foo(&self);
}
|