# 05 — Generyki, Traity i Lifetimes ## Zakres * Funkcje i typy generyczne (``) * Definiowanie i implementowanie traitów (`trait Summary`) * Podstawowe adnotacje czasu życia (`'a`) ## Zadania (`src/lib.rs`) 1. `largest(items: &[T]) -> Option<&T>` — referencja do największego elementu lub `None`. 2. Zaimplementuj trait `Summary` dla `Article`. 3. `longest<'a>(x: &'a str, y: &'a str) -> &'a str` — dłuższy napis (przy równej długości zwróć `x`). ## Uruchomienie testów ```bash make test PKG=core05-generics-traits ```