Home
last modified time | relevance | path

Searched defs:Wrapper (Results 1 – 25 of 166) sorted by relevance

1234567

/third_party/rust/rust/tests/ui/issues/
Dissue-9446.rs2 struct Wrapper(String); struct
4 impl Wrapper { implementation
5 pub fn new(wrapped: String) -> Wrapper { in new()
10 let Wrapper(ref s) = *self; in say_hi() localVariable
15 impl Drop for Wrapper { implementation
Dissue-20414.rs9 struct Wrapper<T> { struct
13 impl<'a, T> Trait for &'a Wrapper<T> where &'a T: Trait { argument
Dissue-99838.rs20 struct Wrapper { struct
26 struct Misalign(u8, Wrapper); argument
/third_party/rust/rust/tests/ui/associated-inherent-types/
Dambiguity.rs4 struct Wrapper<T>(T); struct
6 impl Wrapper<i32> { impl
10 impl Wrapper<()> { implementation
/third_party/rust/rust/tests/ui/methods/
Dmethod-not-found-generic-arg-elision.rs21 struct Wrapper<T>(T); struct
23 impl Wrapper<i8> { implementation
27 impl Wrapper<i16> { impl
31 impl Wrapper<i32> { impl
35 impl Wrapper<i64> { impl
39 impl Wrapper<u8> { implementation
43 impl Wrapper<u16> { implementation
Dfield-method-suggestion-using-return-ty.rs1 struct Wrapper<T>(T); struct
3 impl Wrapper<Option<i32>> { implementation
/third_party/rust/rust/tests/rustdoc/notable-trait/
Dnotable-trait-generics.rs6 pub struct Wrapper<T>(T); struct
11 impl NotableTrait for Wrapper<u8> {} implementation
23 pub struct Wrapper<T>(T); struct
28 impl<T> NotableTrait for Wrapper<T> {} implementation
Ddoc-notable_trait.rs3 pub struct Wrapper<T> { struct
7 impl<T: SomeTrait> SomeTrait for Wrapper<T> {} argument
/third_party/rust/rust/tests/ui/suggestions/
Dissue-101984.rs5 struct Wrapper { struct
19 impl Wrapper { impl
Dmissing-bound-in-manual-copy-impl.rs4 struct Wrapper<T>(T); struct
6 impl<S> Copy for Wrapper<S> {} implementation
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dtemplate_typedef_transitive_param.hpp3 struct Wrapper { struct
4 struct Wrapped {
7 using Type = Wrapped;
Dreplaces_double.hpp4 struct Wrapper { struct
13 using MaybeWrapped = typename Wrapper<T>::Type; argument
/third_party/rust/rust/tests/ui/nll/
Dissue-48179.rs16 pub struct Wrapper<'a> { struct
20 impl<'a, 'de> Wrapper<'a> { implementation
/third_party/rust/rust/tests/ui/generic-associated-types/
Dissue-89352.rs11 pub struct Wrapper<'a, T: 'a, A: GenAssoc<T>> { struct
16 impl<'ai, T: 'ai, A: GenAssoc<T>> GenAssoc<T> for Wrapper<'ai, T, A> argument
/third_party/rust/rust/tests/ui/coherence/
Dcoherence-with-generator.rs18 struct Wrapper<T>(T); struct
20 impl Trait for Wrapper<OpaqueGenerator> {} implementation
21 impl<T: Sync> Trait for Wrapper<T> {} implementation
Dcoherence-with-closure.rs8 struct Wrapper<T>(T); struct
10 impl Trait for Wrapper<OpaqueClosure> {} implementation
11 impl<T: Sync> Trait for Wrapper<T> {} implementation
/third_party/rust/rust/tests/ui/traits/new-solver/
Dtemporary-ambiguity.rs6 struct Wrapper<T>(T); struct
10 impl Foo for Wrapper<i32> {} implementation
12 impl Foo for Wrapper<()> {} implementation
/third_party/rust/rust/src/tools/clippy/tests/ui/index_refutable_slice/
Dif_let_slice_binding.rs106 struct Wrapper<'a> { in check_slice_in_struct() struct
107 inner: Option<&'a [String]>, in check_slice_in_struct()
108 is_awesome: bool, in check_slice_in_struct()
111 impl<'a> Wrapper<'a> { in check_slice_in_struct() impl
/third_party/rust/rust/src/tools/miri/tests/fail/
Dreading_half_a_pointer.rs11 struct Wrapper { struct
19 let mut w = Wrapper { align: 0, data: Data { pad: 0, ptr: &G } }; in main() argument
/third_party/rust/rust/tests/ui/error-codes/
DE0476.rs7 struct Wrapper<T>(T); struct
9 impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {} implementation
/third_party/rust/rust/src/tools/clippy/tests/ui/
Dneedless_pass_by_value.rs30 struct Wrapper(String); struct
32 fn bar(x: String, y: Wrapper) { in bar()
63 fn test_destructure(x: Wrapper, y: Wrapper, z: Wrapper) { in test_destructure()
64 let Wrapper(s) = z; // moved in test_destructure() localVariable
65 let Wrapper(ref t) = y; // not moved in test_destructure() localVariable
66 let Wrapper(_) = y; // still not moved in test_destructure() localVariable
Dtemporary_assignment.rs16 struct Wrapper<'a> { struct
20 impl<'a> Deref for Wrapper<'a> { argument
27 impl<'a> DerefMut for Wrapper<'a> { implementation
/third_party/rust/rust/compiler/rustc_codegen_cranelift/example/
Darbitrary_self_types_pointers_and_wrappers.rs23 struct Wrapper<T: ?Sized>(T); struct
25 impl<T: ?Sized> Deref for Wrapper<T> { implementation
33 impl<T: CoerceUnsized<U>, U> CoerceUnsized<Wrapper<U>> for Wrapper<T> {} implementation
34 impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {} implementation
/third_party/rust/rust/compiler/rustc_codegen_gcc/example/
Darbitrary_self_types_pointers_and_wrappers.rs24 struct Wrapper<T: ?Sized>(T); struct
26 impl<T: ?Sized> Deref for Wrapper<T> { implementation
34 impl<T: CoerceUnsized<U>, U> CoerceUnsized<Wrapper<U>> for Wrapper<T> {} implementation
35 impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {} implementation
/third_party/rust/rust/tests/ui/dropck/
Drelate_lt_in_type_outlives_bound.rs1 struct Wrapper<'a, T>(&'a T) struct
5 impl<'a, T> Drop for Wrapper<'a, T> implementation

1234567