]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/statics/auxiliary/static-methods-crate.rs
1 #![crate_name="static_methods_crate"]
4 pub trait read
: Sized
{
5 fn readMaybe(s
: String
) -> Option
<Self>;
9 fn readMaybe(s
: String
) -> Option
<isize> {
15 fn readMaybe(s
: String
) -> Option
<bool
> {
18 "false" => Some(false),
24 pub fn read
<T
:read
>(s
: String
) -> T
{
25 match read
::readMaybe(s
) {
27 _
=> panic
!("read panicked!")