blob: 915044a85f64f1c06f614343a0b6710f697eed30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use ref_cast::{ref_cast_custom, RefCastCustom};
#[derive(RefCastCustom)]
#[repr(transparent)]
pub struct Thing(String);
impl Thing {
#[ref_cast_custom]
pub fn ref_cast(s: &String) -> &Self {}
}
fn main() {}
|