2021-01-02 12:45:11 -06:00
|
|
|
mod no_generics {
|
|
|
|
struct Ty;
|
|
|
|
|
|
|
|
type A = Ty;
|
|
|
|
|
|
|
|
type B = Ty<'static>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove these generics
|
|
|
|
|
|
|
|
type C = Ty<'static, usize>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument
|
|
|
|
//~| ERROR struct takes 0 generic arguments but 1 generic argument
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove this lifetime argument
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP remove this generic argument
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type D = Ty<'static, usize, { 0 }>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument
|
|
|
|
//~| ERROR struct takes 0 generic arguments but 2 generic arguments
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove this lifetime argument
|
|
|
|
//~| HELP remove these generic arguments
|
|
|
|
}
|
|
|
|
|
|
|
|
mod type_and_type {
|
2023-10-31 08:45:26 -05:00
|
|
|
struct Ty<A, B>(A, B);
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type A = Ty;
|
|
|
|
//~^ ERROR missing generics for struct `type_and_type::Ty`
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type B = Ty<usize>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 2 generic arguments but 1 generic argument
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type C = Ty<usize, String>;
|
|
|
|
|
|
|
|
type D = Ty<usize, String, char>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 2 generic arguments but 3 generic arguments
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP remove this
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type E = Ty<>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 2 generic arguments but 0 generic arguments were supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod lifetime_and_type {
|
2023-10-31 08:45:26 -05:00
|
|
|
struct Ty<'a, T>(&'a T);
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type A = Ty;
|
2021-02-18 14:01:44 -06:00
|
|
|
//~^ ERROR missing generics for struct
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| ERROR missing lifetime specifier
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP consider introducing
|
|
|
|
|
|
|
|
type B = Ty<'static>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 1 generic argument but 0 generic arguments
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type C = Ty<usize>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
|
|
|
|
|
|
|
type D = Ty<'static, usize>;
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type E = Ty<>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
|
|
|
//~| HELP add missing
|
2021-05-16 09:54:14 -05:00
|
|
|
|
|
|
|
type F = Ty<'static, usize, 'static, usize>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 1 lifetime argument but 2 lifetime arguments
|
|
|
|
//~| ERROR struct takes 1 generic argument but 2 generic arguments
|
2021-05-16 09:54:14 -05:00
|
|
|
//~| HELP remove this lifetime argument
|
|
|
|
//~| HELP remove this generic argument
|
2021-01-02 12:45:11 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod type_and_type_and_type {
|
2023-10-31 08:45:26 -05:00
|
|
|
struct Ty<A, B, C = &'static str>(A, B, C);
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type A = Ty;
|
|
|
|
//~^ ERROR missing generics for struct `type_and_type_and_type::Ty`
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type B = Ty<usize>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at least 2
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type C = Ty<usize, String>;
|
|
|
|
|
|
|
|
type D = Ty<usize, String, char>;
|
|
|
|
|
|
|
|
type E = Ty<usize, String, char, f64>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at most 3
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type F = Ty<>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at least 2 generic arguments but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// Traits have an implicit `Self` type - these tests ensure we don't accidentally return it
|
|
|
|
// somewhere in the message
|
|
|
|
mod r#trait {
|
|
|
|
trait NonGeneric {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
trait GenericLifetime<'a> {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
trait GenericType<A> {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn NonGeneric<usize>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 0 generic arguments but 1 generic argument
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type B = Box<dyn GenericLifetime>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type C = Box<dyn GenericLifetime<'static, 'static>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 lifetime argument but 2 lifetime arguments were supplied
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type D = Box<dyn GenericType>;
|
|
|
|
//~^ ERROR missing generics for trait `GenericType`
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type E = Box<dyn GenericType<String, usize>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 2 generic arguments
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type F = Box<dyn GenericLifetime<>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type G = Box<dyn GenericType<>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
}
|
|
|
|
|
|
|
|
mod associated_item {
|
|
|
|
mod non_generic {
|
|
|
|
trait NonGenericAT {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn NonGenericAT<usize, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 0 generic arguments but 1 generic argument
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
}
|
|
|
|
|
|
|
|
mod lifetime {
|
|
|
|
trait GenericLifetimeAT<'a> {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn GenericLifetimeAT<AssocTy=()>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type B = Box<dyn GenericLifetimeAT<'static, 'static, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 lifetime argument but 2 lifetime arguments were supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type C = Box<dyn GenericLifetimeAT<(), AssocTy=()>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 0 generic arguments but 1 generic argument
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
}
|
|
|
|
|
|
|
|
mod r#type {
|
|
|
|
trait GenericTypeAT<A> {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn GenericTypeAT<AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type B = Box<dyn GenericTypeAT<(), (), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 2 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type C = Box<dyn GenericTypeAT<'static, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 0 lifetime arguments but 1 lifetime argument was supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
}
|
|
|
|
|
|
|
|
mod lifetime_and_type {
|
|
|
|
trait GenericLifetimeTypeAT<'a, A> {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn GenericLifetimeTypeAT<AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
//~| ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type B = Box<dyn GenericLifetimeTypeAT<'static, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 0 generic arguments were supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 lifetime argument but 2 lifetime arguments were supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type D = Box<dyn GenericLifetimeTypeAT<(), AssocTy=()>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type E = Box<dyn GenericLifetimeTypeAT<(), (), AssocTy=()>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 1 generic argument but 2 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type F = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 lifetime argument but 2 lifetime arguments were supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type G = Box<dyn GenericLifetimeTypeAT<'static, (), (), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 generic argument but 2 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
|
|
|
|
type H = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), (), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 1 lifetime argument but 2 lifetime arguments were supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 1 generic argument but 2 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
}
|
|
|
|
|
|
|
|
mod type_and_type {
|
|
|
|
trait GenericTypeTypeAT<A, B> {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn GenericTypeTypeAT<AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 2 generic arguments but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type B = Box<dyn GenericTypeTypeAT<(), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 2 generic arguments but 1 generic argument
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type C = Box<dyn GenericTypeTypeAT<(), (), (), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 2 generic arguments but 3 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP remove
|
|
|
|
}
|
|
|
|
|
|
|
|
mod lifetime_and_lifetime {
|
|
|
|
trait GenericLifetimeLifetimeAT<'a, 'b> {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn GenericLifetimeLifetimeAT<AssocTy=()>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type B = Box<dyn GenericLifetimeLifetimeAT<'static, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing lifetime argument
|
|
|
|
}
|
|
|
|
|
|
|
|
mod lifetime_and_lifetime_and_type {
|
|
|
|
trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
|
|
|
|
type AssocTy;
|
|
|
|
}
|
|
|
|
|
|
|
|
type A = Box<dyn GenericLifetimeLifetimeTypeAT<AssocTy=()>>;
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
//~| HELP consider introducing
|
2022-06-05 11:33:09 -05:00
|
|
|
//~| HELP consider making the bound lifetime-generic
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing lifetime argument
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR trait takes 1 generic argument but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
|
|
|
|
|
|
|
type C = Box<dyn GenericLifetimeLifetimeTypeAT<'static, (), AssocTy=()>>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR trait takes 2 lifetime arguments but 1 lifetime argument was supplied
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing lifetime argument
|
|
|
|
}
|
2021-01-02 12:45:11 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod stdlib {
|
|
|
|
mod hash_map {
|
|
|
|
use std::collections::HashMap;
|
|
|
|
|
|
|
|
type A = HashMap;
|
|
|
|
//~^ ERROR missing generics for struct `HashMap`
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type B = HashMap<String>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at least
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type C = HashMap<'static>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove these generics
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR struct takes at least 2
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type D = HashMap<usize, String, char, f64>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at most 3
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP remove this
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type E = HashMap<>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at least 2 generic arguments but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod result {
|
|
|
|
type A = Result;
|
2021-01-28 10:01:36 -06:00
|
|
|
//~^ ERROR missing generics for enum `Result`
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type B = Result<String>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR enum takes 2 generic arguments but 1 generic argument
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type C = Result<'static>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR enum takes 0 lifetime arguments but 1 lifetime argument
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove these generics
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR enum takes 2 generic arguments but 0 generic arguments
|
2021-02-18 14:01:44 -06:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
type D = Result<usize, String, char>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR enum takes 2 generic arguments but 3 generic arguments
|
2021-01-02 12:45:11 -06:00
|
|
|
//~| HELP remove
|
2021-05-12 04:45:23 -05:00
|
|
|
|
|
|
|
type E = Result<>;
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR enum takes 2 generic arguments but 0 generic arguments
|
2021-05-12 04:45:23 -05:00
|
|
|
//~| HELP add missing
|
2021-01-02 12:45:11 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|