| /third_party/rust/rust/tests/ui/issues/ |
| D | issue-9446.rs | 2 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
|
| D | issue-20414.rs | 9 struct Wrapper<T> { struct 13 impl<'a, T> Trait for &'a Wrapper<T> where &'a T: Trait { argument
|
| D | issue-99838.rs | 20 struct Wrapper { struct 26 struct Misalign(u8, Wrapper); argument
|
| /third_party/rust/rust/tests/ui/associated-inherent-types/ |
| D | ambiguity.rs | 4 struct Wrapper<T>(T); struct 6 impl Wrapper<i32> { impl 10 impl Wrapper<()> { implementation
|
| /third_party/rust/rust/tests/ui/methods/ |
| D | method-not-found-generic-arg-elision.rs | 21 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
|
| D | field-method-suggestion-using-return-ty.rs | 1 struct Wrapper<T>(T); struct 3 impl Wrapper<Option<i32>> { implementation
|
| /third_party/rust/rust/tests/rustdoc/notable-trait/ |
| D | notable-trait-generics.rs | 6 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
|
| D | doc-notable_trait.rs | 3 pub struct Wrapper<T> { struct 7 impl<T: SomeTrait> SomeTrait for Wrapper<T> {} argument
|
| /third_party/rust/rust/tests/ui/suggestions/ |
| D | issue-101984.rs | 5 struct Wrapper { struct 19 impl Wrapper { impl
|
| D | missing-bound-in-manual-copy-impl.rs | 4 struct Wrapper<T>(T); struct 6 impl<S> Copy for Wrapper<S> {} implementation
|
| /third_party/rust/crates/bindgen/bindgen-tests/tests/headers/ |
| D | template_typedef_transitive_param.hpp | 3 struct Wrapper { struct 4 struct Wrapped { 7 using Type = Wrapped;
|
| D | replaces_double.hpp | 4 struct Wrapper { struct 13 using MaybeWrapped = typename Wrapper<T>::Type; argument
|
| /third_party/rust/rust/tests/ui/nll/ |
| D | issue-48179.rs | 16 pub struct Wrapper<'a> { struct 20 impl<'a, 'de> Wrapper<'a> { implementation
|
| /third_party/rust/rust/tests/ui/generic-associated-types/ |
| D | issue-89352.rs | 11 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/ |
| D | coherence-with-generator.rs | 18 struct Wrapper<T>(T); struct 20 impl Trait for Wrapper<OpaqueGenerator> {} implementation 21 impl<T: Sync> Trait for Wrapper<T> {} implementation
|
| D | coherence-with-closure.rs | 8 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/ |
| D | temporary-ambiguity.rs | 6 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/ |
| D | if_let_slice_binding.rs | 106 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/ |
| D | reading_half_a_pointer.rs | 11 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/ |
| D | E0476.rs | 7 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/ |
| D | needless_pass_by_value.rs | 30 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
|
| D | temporary_assignment.rs | 16 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/ |
| D | arbitrary_self_types_pointers_and_wrappers.rs | 23 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/ |
| D | arbitrary_self_types_pointers_and_wrappers.rs | 24 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/ |
| D | relate_lt_in_type_outlives_bound.rs | 1 struct Wrapper<'a, T>(&'a T) struct 5 impl<'a, T> Drop for Wrapper<'a, T> implementation
|