#[test]
fn skipped_methods_absent_from_shim() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/skip_receiverless.rs");
t.compile_fail("tests/ui/skip_generic.rs");
t.compile_fail("tests/ui/skip_const_generic.rs");
t.compile_fail("tests/ui/skip_async.rs");
t.compile_fail("tests/ui/skip_self_return.rs");
t.compile_fail("tests/ui/skip_self_arg.rs");
t.compile_fail("tests/ui/skip_impl_trait_arg.rs");
t.compile_fail("tests/ui/skip_impl_trait_ret.rs");
t.compile_fail("tests/ui/skip_self_sized.rs");
t.compile_fail("tests/ui/skip_attr.rs");
}
#[test]
fn invalid_helper_attrs_rejected() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/attr_non_method.rs");
t.compile_fail("tests/ui/attr_unknown_arg.rs");
}
#[test]
fn recognized_bounds_rejected() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/bound_clone_unsatisfied.rs");
t.compile_fail("tests/ui/bound_hash_unsatisfied.rs");
}
#[test]
fn impossible_bounds_rejected() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/bound_copy.rs");
t.compile_fail("tests/ui/bound_sized.rs");
t.compile_fail("tests/ui/bound_default.rs");
t.compile_fail("tests/ui/bound_eq.rs");
t.compile_fail("tests/ui/bound_partial_eq.rs");
t.compile_fail("tests/ui/bound_ord.rs");
t.compile_fail("tests/ui/bound_partial_ord.rs");
t.compile_fail("tests/ui/bound_not_dyn_compatible.rs");
t.compile_fail("tests/ui/bound_path_form.rs");
t.compile_fail("tests/ui/bound_maybe_sized.rs");
}
#[test]
fn unlisted_marker_not_covered() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/bound_clone_unlisted_marker.rs");
}