Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  no-custom.stderr   Sprache: unbekannt

 
Spracherkennung für: .stderr vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

error[E0277]: the trait bound `&Thing: ref_cast::custom::RefCastOkay<&String>` is not satisfied
 --> tests/ui/no-custom.rs:8:36
  |
8 |     pub fn ref_cast(s: &String) -> &Self;
  |                                    ^^^^^ the trait `RefCastCustom<String>` is not implemented for `Thing`
  |
  = help: the following other types implement trait `ref_cast::custom::RefCastOkay<From>`:
            `&'a To` implements `ref_cast::custom::RefCastOkay<&'a From>`
            `&'a mut To` implements `ref_cast::custom::RefCastOkay<&'a mut From>`
  = note: required for `&Thing` to implement `ref_cast::custom::RefCastOkay<&String>`
note: required by a bound in `ref_cast_custom`
 --> src/custom.rs
  |
  | pub fn ref_cast_custom<From, To>(_arg: From)
  |        --------------- required by a bound in this function
  | where
  |     To: RefCastOkay<From>,
  |         ^^^^^^^^^^^^^^^^^ required by this bound in `ref_cast_custom`

error[E0071]: expected struct, variant or union type, found inferred type
 --> tests/ui/no-custom.rs:8:41
  |
8 |     pub fn ref_cast(s: &String) -> &Self;
  |                                         ^ not a struct

error[E0277]: the trait bound `Thing: RefCastCustom<String>` is not satisfied
 --> tests/ui/no-custom.rs:8:41
  |
8 |     pub fn ref_cast(s: &String) -> &Self;
  |                                         ^ the trait `RefCastCustom<String>` is not implemented for `Thing`
  |
  = help: the following other types implement trait `ref_cast::custom::RefCastOkay<From>`:
            `&'a To` implements `ref_cast::custom::RefCastOkay<&'a From>`
            `&'a mut To` implements `ref_cast::custom::RefCastOkay<&'a mut From>`
  = note: required for `&Thing` to implement `ref_cast::custom::RefCastOkay<&String>`

[Dauer der Verarbeitung: 0.12 Sekunden, vorverarbeitet 2026-08-25]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002